Comments (2)
Hello @MathewHDYT ,
thank you for the detailed explanation, it is very helpful.
I defined the OTA callback as you said, the issue is no longer happening (I tried 20 times with no issues).
Have a Merry Christmas.
Regards
from thingsboard-client-sdk.
The re-connection attempts are not made by the library, but in the aforementioned example the re-connection attempts have to be made by the user utilizing the library.
In the case of the example it is the main
method which reconnects. This is the case because reconnecting is different for every device and reconnecting directly in the library would be very hard and bug prone to implement and not really have a real advantage.
For now would it be possible to adjust the internal timeout in the OTA_Callback
.
const OTA_Update_Callback callback(&progressCallback, &updatedCallback, CURRENT_FIRMWARE_TITLE, CURRENT_FIRMWARE_VERSION, &updater, 20, FIRMWARE_PACKET_SIZE, 10U * 1000U * 1000U);
This will wait 10 seconds between each rerequest of the same chunk if it failed and attempts to download the same chunk 20 times.
While that is happening ensure that the connection is attempted, if you are using the example it should print Connecting to: demo.thingsboard with token
.
from thingsboard-client-sdk.
Related Issues (20)
- Allocate more memory to Request Shared Attributes HOT 2
- Espressif_MQTT_client.cpp & OTA bug HOT 2
- Can't send messages to ThingsBoard from a MKR WiFi 1010 HOT 3
- 0003_esp8266_esp32_send_data crashes HOT 2
- TBPubSubClient.h conflicts with PubSubClient.h HOT 17
- ESP32 RPC response reply only 1.695175409 HOT 32
- RPC request to server. How to passing params to server? HOT 9
- ESP32 OTA Firmware Update Issue: SIM800L, ThingsBoard, and Chunk Size Anomalies HOT 15
- How to update without restarting the device HOT 3
- .pio\libdeps\esp32dev\ThingsBoard\src\Arduino_ESP32_Updater.cpp:9:20: fatal error: Update.h: No such file or directory HOT 27
- What about ThingsBoard Stack size. HOT 2
- How to request Server attributes? HOT 2
- Not the latest version of SDK on Espressif's IDF Component Registry HOT 10
- Request for Additional ESP-IDF Examples in Thingsboard C++ SDK HOT 3
- libary logging function deactivate? HOT 4
- wrong entry for thingsboard pubsubclient library. HOT 3
- pupdate thingsboard library.json at platformio
- 0014-espressif_esp32_send_data as components meets the "TICKE.H" error was encountered HOT 6
- OTA update Fails with [TB: preparing for update fails, Attributes might be NULL] HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thingsboard-client-sdk.