From 4e7860de3208fcaec01db4e6600bc31e79af6a8e Mon Sep 17 00:00:00 2001 From: fabik111 Date: Mon, 26 May 2025 17:59:30 +0200 Subject: [PATCH 1/2] fix the crash of portenta h7 with cellular connectivity --- src/ArduinoIoTCloudTCP.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } From bc06ddc9eb6a3337a6117c20f283206243324a9d Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 27 May 2025 09:54:52 +0200 Subject: [PATCH 2/2] Release v2.6.1 --- library.properties | 2 +- src/AIoTC_Config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_ */