Comments on: ESP8266 NodeMCU OTA (Over-the-Air) Updates – AsyncElegantOTA (VS Code + PlatformIO) https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 20 Nov 2024 04:08:18 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: John https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-984323 Wed, 20 Nov 2024 04:08:18 +0000 https://randomnerdtutorials.com/?p=101751#comment-984323 Hey Guys, Obviously in that last post there was much going on that I have no idea was occuring. For one thing when I installed the ElegantOTA library (I didn’t notice until I was shutting down) that 3 different Libraries were added for ESPAsyncTCP. So I scrapped it all and started over. It looks much better, however I still have one error in the main.ccp:

argument of type “AsyncWebServer *” is incompatible with parameter of type “ESP8266WebServer *” (aka “esp8266webserver::ESP8266WebServerTemplate *”)
That error has been persistant. Any Clues?

]]>
By: John https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-984315 Wed, 20 Nov 2024 03:30:21 +0000 https://randomnerdtutorials.com/?p=101751#comment-984315 Guys, I finally found the updated ElegantOTA library. Through much searching I found the one listed in this tutorial is deprecated. The author points to a web page that gives a similar identification of ayushsharma82/ElegantOTA@^3.1.6, but when I put that in the ini file, platformio reports parsing errors, and won’t allow it. I then found that it is in the PIO repository listed under ElegantOTA. Installing from there places the proper ID in the ini file. But the problems don’t end there. There are then several errors generated one refering to a line in the AsyncTCP library they are as follows:
1. cannot convert ‘AsyncWebServer‘ to ‘ESP8266WebServer‘ {aka ‘esp8266webserver::ESP8266WebServerTemplate*’}
2. argument of type “AsyncWebServer *” is incompatible with parameter of type “ESP8266WebServer *” (aka “esp8266webserver::ESP8266WebServerTemplate *”)
4. #error For RASPBERRY_PI_PICO_W board using CYW43439 WiFi only.
I’m not sure where to go with all this, and with my limited experience, I’ve never seen PIO generate errors from libraries before. Any Help greatly appreciated.

]]>
By: John https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-983952 Mon, 18 Nov 2024 03:41:03 +0000 https://randomnerdtutorials.com/?p=101751#comment-983952 Hi Rui/Sara. I have been working for a few days trying to get OTA to work on the arduino IDE with some success. In searching for solutions to my problems (mainly that the port is dropped randomly) it was pointed out that PlatformIO worked much better than the IDE; which brought me here. However, when I followed the instructions here, before trying to upload I ran a check compile and got the error:
UnknownPackageError: Could not find the package with ‘ayushsharma82/AsyncElegantOTA @ ^2.2.5’ requirements for your system ‘windows_amd64’
If I look for the library in PIO, it’s not there, so I don’t know where to get it. Can you steer me in the right direction? Thanks

]]>
By: Ronald Petty https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-781042 Mon, 05 Sep 2022 17:46:45 +0000 https://randomnerdtutorials.com/?p=101751#comment-781042 Sara/Rui,
read
Thank you for this tutorial. I need to read the instructions more carefully and realize that reading and reading again will help me keep from getting frustrated. I had a hard time compiling the program at first but after rereading the instructions it was clear that some of your instructions were a preview of more detailed instructions later on.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-730611 Mon, 07 Mar 2022 22:48:09 +0000 https://randomnerdtutorials.com/?p=101751#comment-730611 In reply to Duncan.

Hi.
This example is for ESP8266, not for ESP32.
For the ESP32, check this tutorial instead: https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/
Regards,
Sara

]]>
By: Duncan https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-730551 Mon, 07 Mar 2022 17:27:27 +0000 https://randomnerdtutorials.com/?p=101751#comment-730551 For the littlefs example to work, do I need to create the partition on the ESP32 first before this example can run properly? Is the process missing from the code examples above?
At the moment I get:-

.pio\libdeps\esp32dev\LittleFS_esp32\src\lfs.c:1076:error: Corrupted dir pair at {0x0, 0x1}
E (34) esp_littlefs: mount failed, (-84)
E (34) esp_littlefs: Failed to initialize LittleFS
[E][LittleFS.cpp:90] begin(): Mounting LITTLEFS failed! Error: -1

]]>
By: Mark Pope https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-714229 Mon, 27 Dec 2021 20:30:18 +0000 https://randomnerdtutorials.com/?p=101751#comment-714229 In reply to Sara Santos.

Hi Sara,

I just purchased a new Dell laptop and installed VSCode/PlatformIO, creating a new project, added the three libraries and the provided sample code. I get the same panic.

Regards,
Mark

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-714122 Mon, 27 Dec 2021 14:59:04 +0000 https://randomnerdtutorials.com/?p=101751#comment-714122 In reply to Mark Pope.

Hi again.
Taking that into account, it seems there must be some issue with your base code.
Regards,
Sara

]]>
By: Mark Pope https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-713497 Sat, 25 Dec 2021 21:51:38 +0000 https://randomnerdtutorials.com/?p=101751#comment-713497 In reply to Sara Santos.

Sara/Rui,

I made a bad assumption that the WiFiManager or another library was causing the panic. I created a new PlatformIO project, including AsyncElegantOTA, me-no-dev/ESPAsyncWebServer, me-no-dev/ESPAsyncTCP, and your example in this tutorial and get the same panic when the .bin completes uploading.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/#comment-711891 Wed, 22 Dec 2021 15:39:35 +0000 https://randomnerdtutorials.com/?p=101751#comment-711891 In reply to Mark Pope.

Hi.
Yes, I think it should work, but I haven’t tested it in that scenario.
Regards,
Sara

]]>