Replies: 6 comments 6 replies
-
Plese make sure you define the macro for ota. For ESP8266, the You should set the maximum 16k for rx buffer like this
And the base64 encoded string of your firmware is already in your database, or using set/push File as in this example. The result from running OTA example. �Connecting to Wi-Fi...........
Connected with IP: 192.168.246.236
Firebase Client v2.1.3
Initializing app...
Event task: 🔐 authTask, msg: authenticating, code: 7
Debug task: 🔐 authTask, msg: Connecting to server...
Event task: 🔐 authTask, msg: auth request sent, code: 8
Event task: 🔐 authTask, msg: auth response received, code: 9
Debug task: 🔐 authTask, msg: Terminating the server connection...
Event task: 🔐 authTask, msg: ready, code: 10
Updating your firmware (OTA)...
Debug task: otaTask, msg: Connecting to server...
Download task: otaTask, downloaded 0% (2049 of 361582)
Download task: otaTask, downloaded 2% (8193 of 361582)
Download task: otaTask, downloaded 4% (16385 of 361582)
Download task: otaTask, downloaded 6% (22529 of 361582)
Download task: otaTask, downloaded 8% (30721 of 361582)
Download task: otaTask, downloaded 10% (36865 of 361582)
Download task: otaTask, downloaded 12% (45057 of 361582)
Download task: otaTask, downloaded 14% (51201 of 361582)
Download task: otaTask, downloaded 16% (59393 of 361582)
Download task: otaTask, downloaded 18% (65537 of 361582)
Download task: otaTask, downloaded 20% (73729 of 361582)
Download task: otaTask, downloaded 22% (79873 of 361582)
Download task: otaTask, downloaded 24% (88065 of 361582)
Download task: otaTask, downloaded 26% (94209 of 361582)
Download task: otaTask, downloaded 28% (102401 of 361582)
Download task: otaTask, downloaded 30% (108545 of 361582)
Download task: otaTask, downloaded 32% (116737 of 361582)
Download task: otaTask, downloaded 34% (124929 of 361582)
Download task: otaTask, downloaded 36% (131073 of 361582)
Download task: otaTask, downloaded 38% (139265 of 361582)
Download task: otaTask, downloaded 40% (145409 of 361582)
Download task: otaTask, downloaded 42% (153601 of 361582)
Download task: otaTask, downloaded 44% (159745 of 361582)
Download task: otaTask, downloaded 46% (167937 of 361582)
Download task: otaTask, downloaded 48% (174081 of 361582)
Download task: otaTask, downloaded 50% (182273 of 361582)
Download task: otaTask, downloaded 52% (188417 of 361582)
Download task: otaTask, downloaded 54% (196609 of 361582)
Download task: otaTask, downloaded 56% (202753 of 361582)
Download task: otaTask, downloaded 58% (210945 of 361582)
Download task: otaTask, downloaded 60% (217089 of 361582)
Download task: otaTask, downloaded 62% (225281 of 361582)
Download task: otaTask, downloaded 64% (231425 of 361582)
Download task: otaTask, downloaded 66% (239617 of 361582)
Download task: otaTask, downloaded 68% (247809 of 361582)
Download task: otaTask, downloaded 70% (253953 of 361582)
Download task: otaTask, downloaded 72% (262145 of 361582)
Download task: otaTask, downloaded 74% (268289 of 361582)
Download task: otaTask, downloaded 76% (276481 of 361582)
Download task: otaTask, downloaded 78% (282625 of 361582)
Download task: otaTask, downloaded 80% (290817 of 361582)
Download task: otaTask, downloaded 82% (296961 of 361582)
Download task: otaTask, downloaded 84% (305153 of 361582)
Download task: otaTask, downloaded 86% (311297 of 361582)
Download task: otaTask, downloaded 88% (319489 of 361582)
Download task: otaTask, downloaded 90% (325633 of 361582)
Download task: otaTask, downloaded 92% (333825 of 361582)
Download task: otaTask, downloaded 94% (339969 of 361582)
Download task: otaTask, downloaded 96% (348161 of 361582)
Download task: otaTask, downloaded 98% (356353 of 361582)
Download task: otaTask, downloaded 100% (361582 of 361582)
Download task: otaTask, complete!✅️
Update firmware completed.
Restarting...
ets Jan 8 2013,rst cause:2, boot mode:(3,7) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You should follow the BareMinimum example for how to use library correctly. The function You have to look at |
Beta Was this translation helpful? Give feedback.
-
In brief You should replace |
Beta Was this translation helpful? Give feedback.
-
Yes, thank you I just tried in this way: ssl_client.setInsecure();
ssl_client.setBufferSizes(16384, 1024);
//set_ssl_client_insecure_and_buffer(ssl_client); And then the Firebase Client v2.1.3
Initializing app...
Event task: 🔐 authTask, msg: authenticating, code: 7
Debug task: 🔐 authTask, msg: Connecting to server...
Event task: 🔐 authTask, msg: auth request sent, code: 8
Event task: 🔐 authTask, msg: auth response received, code: 9
Debug task: 🔐 authTask, msg: Terminating the server connection...
Event task: 🔐 authTask, msg: ready, code: 10
Updating your firmware (OTA)...
⚡OTA dowload task (await), complete!✅️ and after nothing happens, I miss something more? Thanks |
Beta Was this translation helpful? Give feedback.
-
I missed this sentence.
There is no callback or async result assigned with all await functions then there is no way to sending such information to user. Library has the debugging system and will not print anything to serial port without user consent. If you want to debug or seeing the progress, use async instead. The await OTA also works but no progress printing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using the RealtimeDatabase OTA example provided with this library, I changed the sketch environment variables, the RTDB firmware path, set the correct RTDB rules and uploaded the .bin firmware converted in base64 string on Firebase RTDB but when I run the sketch I get this in the Serial monitor:
and after this nothing happens, I tried alternatively the three functions in the code:
but nothing happens, apparently the esp8266 download the firmware in the RTDB but don't flash it in memory for some reason.
Where am I going wrong?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions