diff --git a/library.properties b/library.properties index fa2bb363d..7ab62ce5c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ArduinoIoTCloud -version=2.6.0 +version=2.6.1 author=Arduino maintainer=Arduino sentence=This library allows connecting to the Arduino IoT Cloud service. diff --git a/src/AIoTC_Config.h b/src/AIoTC_Config.h index b02d3d7b9..a25b81080 100644 --- a/src/AIoTC_Config.h +++ b/src/AIoTC_Config.h @@ -185,6 +185,6 @@ #define AIOT_CONFIG_LASTVALUES_SYNC_MAX_RETRY_CNT (10UL) #endif -#define AIOT_CONFIG_LIB_VERSION "2.6.0" +#define AIOT_CONFIG_LIB_VERSION "2.6.1" #endif /* ARDUINO_AIOTC_CONFIG_H_ */ diff --git a/src/ArduinoIoTCloudTCP.cpp b/src/ArduinoIoTCloudTCP.cpp index f39e6ce9b..9de9d301a 100644 --- a/src/ArduinoIoTCloudTCP.cpp +++ b/src/ArduinoIoTCloudTCP.cpp @@ -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; } @@ -264,7 +264,7 @@ void ArduinoIoTCloudTCP::update() int ArduinoIoTCloudTCP::connected() { - if (_state <= State::Init) { + if (_state <= State::ConnectPhy) { return 0; } return _mqttClient.connected(); @@ -281,7 +281,7 @@ void ArduinoIoTCloudTCP::printDebugInfo() } void ArduinoIoTCloudTCP::disconnect() { - if (_state == State::ConfigPhy || _state == State::Init) { + if (_state <= State::ConnectPhy) { return; }