Skip to content

Commit 04f1f74

Browse files
committed
Add configurable OTA timeout support and update to version 2.41.0
- Added support for receiving timeout values from VSCode extension during OTA begin - Devices can now apply server-configured timeout for OTA operations - Useful for slow connections (GSM/GPRS) requiring longer timeouts - Update version to 2.41.0
1 parent 32b9149 commit 04f1f74

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.41.0
2+
3+
#### OTA
4+
5+
- **Added** support for configurable OTA timeout. Devices can now receive and apply timeout values from the VSCode extension during OTA initialization, allowing per-device timeout configuration for operations over slow connections (GSM/GPRS).
6+
17
## 2.40.0
28

39
#### NB-IOT CORE

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=thinger.io
2-
version=2.40.0
2+
version=2.41.0
33
author=Alvaro Luis Bustamante <alvarolb@thinger.io>
44
maintainer=Thinger.io <admin@thinger.io>
55
sentence=Arduino library for IOTMP protocol used on Thinger.io IOT Platform.

src/ThingerOTA.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ class ThingerOTA{
7575
size_t chunk_size = in["chunk_size"];
7676
firmware_offset_ = 0;
7777

78+
// update timeout if provided from server (in milliseconds)
79+
size_t timeout = in["timeout"];
80+
if(timeout > 0){
81+
timeout_ = timeout;
82+
THINGER_DEBUG_VALUE("OTA", "Timeout updated to (ms): ", timeout_);
83+
}
84+
7885
THINGER_DEBUG("OTA", "Received OTA request...");
7986
THINGER_DEBUG_VALUE("OTA", "Firmware: ", firmware);
8087
THINGER_DEBUG_VALUE("OTA", "Firmware Size: ", firmware_size_);

0 commit comments

Comments
 (0)