Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ArduinoIoTCloudTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void ArduinoIoTCloudTCP::update()
* the mqttClient. The state can be reached only after the mqttClient is connected to
* the broker.
*/
if(_state <= State::Init){
if(_state <= State::ConnectPhy){
return;
}

Expand All @@ -264,7 +264,7 @@ void ArduinoIoTCloudTCP::update()

int ArduinoIoTCloudTCP::connected()
{
if (_state <= State::Init) {
if (_state <= State::ConnectPhy) {
return 0;
}
return _mqttClient.connected();
Expand All @@ -281,7 +281,7 @@ void ArduinoIoTCloudTCP::printDebugInfo()
}

void ArduinoIoTCloudTCP::disconnect() {
if (_state == State::ConfigPhy || _state == State::Init) {
if (_state <= State::ConnectPhy) {
return;
}

Expand Down
Loading