Comments (2)
I set THINGSBOARD_ENABLE_DEBUG 1
and it seems that sometimes the null character at the end of the topic is missing. Causing certain topic string to additional print a lot of garbage characters because the string is read until a random 0 byte is reached.
[TB] Received data from server over topic (v2/fw/response/0/chunk/374x"'6|h���'8�"� ��T�)
[0;32mI (133080) MAIN: Downwloading firmware progress 91.02%
�3b�:6��)ived data from server over topic (v2/fw/response/0/chunk/375y�
[0;32mI (133280) MAIN: Downwloading firmware progress 91.26%
[TB] Received data from server over topic (v2/fw/response/0/chunk/376z^)
[0;32mI (133690) MAIN: Downwloading firmware progress 91.50%
[TB] Received data from server over topic (v2/fw/response/0/chunk/377{%,�b)
[0;32mI (133900) MAIN: Downwloading firmware progress 91.75%
[TB] Received data from server over topic (v2/fw/response/0/chunk/378|()
But I could not reproduce the Title having missing null termination characters.
Curr: ESP32, Received: ESP32
Therefore I could not reproduce your issues. Even with the other read memory the comparison is still successful and can be downloaded like expected.
It should still be able to match the topics, because we only compare the first 22
bytes of the string. We check of the string starts with those characters v2/fw/response/0/chunk
.
If that is the case we forward the data to the processing method for firmware updates. Additionally the parsing also works correctly meaning the number is still extracted correctly with atoi
.
Additionally I am not sure your fix would solve the issue you mentioned because the firmware title is not contained in the event->topic
, but the event->data
instead.
Also I'm not sure it did not start because of a mismatch in the first place, because if it did it should have printed Firmware is not for us (title is different)
into the console.
What I am currently assuming is that there might have been a different reason the OTA update did not start and it has either not appeared anymore or you fixed it by mistake.
from thingsboard-client-sdk.
@imbeacon Would be nice if this issue could be closed, because it seems to be stale.
from thingsboard-client-sdk.
Related Issues (20)
- Missing "m_capacity = capacity;" in reserve() in Vectors.h causes MAX_RPC_EXCEEDED error HOT 1
- RPC_Response::RPC_Response(Telemetry telemetry) constructor creates NULL object HOT 2
- How to handle big jsons? HOT 2
- data transmission issue HOT 3
- Request all shared attributes HOT 5
- RPC not work in esp-idf HOT 12
- Provision fails when Dynamic ThingsBoard usage HOT 6
- Callback during tb.loop causes Guru Meditation Error HOT 2
- After call sendTelemetryJson connection is disconnect. HOT 3
- RPC Error: HOT 2
- BUILD ERROR in Arduino MKR GSM 1400 and Arduino MKR NB 1500 HOT 18
- Clarity on versions and ArdunoJson HOT 1
- Thingsboard OTA Esp32 update issue HOT 6
- Unable to build 0016 example (Eclipse + ESP-IDF) HOT 4
- RPC polling for 'switch' widget in 'RPC request persistent ' looks like doesn't work HOT 4
- RPC stopped working with ESP32. What is wrong? HOT 11
- Firmware update telemetry data so many entries within telemetry data HOT 2
- Problems with compiling the newest libary 0.1.3 HOT 2
- problems with OTA updater HOT 1
- [TB] Unable to de-serialize received json data with error (DeserializationError::NoMemory) HOT 4
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.