Forums » Req. WJ2(ESP32) support »
OTA not working
Added by Costantino Piva about 1 month 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 (6)
RE: OTA not working
-
Added by Parth Maheshwari (พาร์ท) about 1 month 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 (พาร์ท) 29 days ago
Hello,
Please check #34802#note-7 for the update and fix.
Regards,
Parth
RE: OTA not working
-
Added by Parth Maheshwari (พาร์ท) 23 days 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 3 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 (พาร์ท) 2 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