Project

General

Profile

OTA not working

Added by Costantino Piva about 2 months ago

Hello Waijung2 Support, I'm trying to implement the OTA firmware update on a project, I was trying your example first (the one in Station Mode) and I encountered this error, both by generating my link and by leaving yours (I checked if it was active and it was).

Can you check why this is happening? Thank you


Replies (8)

RE: OTA not working - Added by Parth Maheshwari (พาร์ท) about 2 months ago

Hello,

Apologies for the delayed response. We will begin investigating this and will have an update for you as soon as possible.

Regards,
Parth

RE: OTA not working - Added by Parth Maheshwari (พาร์ท) about 1 month ago

Hello,

Please check #34802#note-7 for the update and fix.

Regards,
Parth

RE: OTA not working - Added by Costantino Piva about 1 month ago

Hello Parth,
thank you very much!

RE: OTA not working - Added by Parth Maheshwari (พาร์ท) about 1 month ago

The patch file has also been uploaded here in case you or someone else requires it in the future. It should help solve the issue.

Regards,
Parth

RE: OTA not working - Added by Costantino Piva 13 days ago

Hello Parth,
Thank you for the support, but unfortunately a new error came out. I downloaded and substituted the patch file you published but when I built the first model of the example this error comes out, even without modifying the model
Error:C:/wajiung2_Tests/OTA/esp32_ota_sta_demo1_esp32_build_system/main/waijung2_hwdrvlib.c:68:9: error: 'HTTP_EVENT_REDIRECT' undeclared (first use in this function); did you mean 'HTTP_EVENT_HEADER_SENT'?
which redirects to the following c code.
Thank you again for the support.
Best reguards

Costantino

RE: OTA not working - Added by Parth Maheshwari (พาร์ท) 13 days ago

Hello Constantino,

We believe you are running into this error because you used the patch file for Waijung v25.4a while you are actually using v24.1a. My apologies for causing the confusion as I had redirected you to this in the most recent message.

The patch file you need for your version is actually uploaded in a separate issue here.

Kindly follow the same steps and let us know how it goes.

Hope this helps.

Regards,
Parth

RE: OTA not working - Added by Costantino Piva 7 days ago

Hello Parth,
Thank you very much, now it works fine but I cannot do one thing. I would like to build a model on esp32 and when I have a newer version of the software upload it on the device via OTA Station Mode but it seems that the model must have the sharable link already integrated, preventing me to update it when the source file changes. Let's say I generate a model and after a month I want to update it via OTA Station Mode, how can I do it? Thank you for the support.
Regards,
Costantino

RE: OTA not working - Added by Parth Maheshwari (พาร์ท) 6 days ago

Hello Constantino,

Glad it is working for you now.

If you would like to build a model on ESP32 and upload a newer version of the software at a later point in time, that is what OTA AP mode was designed for. Have you had the chance to look at that example? With the OTA AP mode there is an embedded web server that you can use to upload the new file from the client itself whenever you want.

Hope that helps.

Regards,
Parth

    (1-8/8)