ESP32 OTA (Over-the-Air) Updates using AsyncElegantOTA: Arduino IDE or VS Code (ESP8266 NodeMCU)

  Рет қаралды 93,943

Rui Santos

Rui Santos

3 жыл бұрын

Visit our blog for complete instructions and source code:
► ESP32 Arduino IDE: RandomNerdTutorials.com/esp32...
► ESP32 VS Code: RandomNerdTutorials.com/esp32...
► ESP8266 Arduino IDE: RandomNerdTutorials.com/esp82...
► ESP8266 VS Code: RandomNerdTutorials.com/esp82...
In this video, you’ll learn how to do over-the-air (OTA) updates to your ESP32 or ESP8266 NodeMCU boards using the AsyncElegantOTA library. You can use Arduino IDE or VS Code with PlatformIO IDE. The Async Elegant OTA library creates a web server that allows you to update new firmware (a new sketch) to your board without the need to make a serial connection between the ESP32/ESP8266 and your computer.
Additionally, with this library you can also upload new files to the ESP filesystem (SPIFFS or LittleFS). The library is very easy to use and it’s compatible with the ESPAsyncWebServer library that we use often to build web server projects.
Like my page on Facebook:
/ randomnerdtutorials
Follow me on twitter:
/ ruisantosdotme
Subscribe for more projects like this!
bit.ly/subscribeRNT
#ESP32 #ESP8266 #Arduino

Пікірлер: 71
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Visit our blog for complete instructions and source code: ► ESP32 Arduino IDE: RandomNerdTutorials.com/esp32-ota-over-the-air-arduino/ ► ESP32 VS Code: RandomNerdTutorials.com/esp32-ota-over-the-air-vs-code/ ► ESP8266 Arduino IDE: RandomNerdTutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/ ► ESP8266 VS Code: RandomNerdTutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/
@motordietenhofen
@motordietenhofen 3 жыл бұрын
Einfach nur Spitze, so einfach am Beispiel erklärt. Weiter so👍👍👍
@aureliencamps2859
@aureliencamps2859 Жыл бұрын
A very good tutorial ! short, and cover the basics rapidly and efficiently to then show more advanced stuffs
@mauliadianti
@mauliadianti 3 жыл бұрын
I really search for this so long time.... thanks!
@wretchedfibs4306
@wretchedfibs4306 2 жыл бұрын
Good fun. I am up to the first part of the tutorial with toggle gpio 2 on esp-32 cam and changed it to gpio 4 to turn on the super bright onboard LED light. Thank you and Ayush for the program and libraries. Will try the flesystem upload part later.
@SvyatoslavFiliam
@SvyatoslavFiliam 2 жыл бұрын
Awesome!!! Thanks!
@mishah6623
@mishah6623 3 жыл бұрын
Siete fantastici!!!
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you!
@maswilly8162
@maswilly8162 2 жыл бұрын
Very helping Thanks So much :)
@aarong1905
@aarong1905 3 жыл бұрын
I love your webpages! I'm just getting started in this hobby and found your tutorials to be the most helpful and fun.
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you!
@PeterMisovicProfile
@PeterMisovicProfile 3 жыл бұрын
Rui is THE BOSS of it :)
@Mohamm-ed
@Mohamm-ed 3 жыл бұрын
Thanks Rui for this tutorial. Can I get sensor data on serial plotter and monitor wireless as well.
@ronylpatil
@ronylpatil 3 жыл бұрын
Your content is really osm. Keep growing and keep sharing such beautiful contents.
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you for watching!
@paulkirchhof9546
@paulkirchhof9546 3 жыл бұрын
Super!
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you!
@lexander9686
@lexander9686 3 жыл бұрын
thank you
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
You're welcome, thanks for watching!
@shakerileiwat4341
@shakerileiwat4341 3 жыл бұрын
Great ♥♥♥
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you!
@MadeniTurkey
@MadeniTurkey 3 жыл бұрын
thx
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
You're welcome!
@karik2880
@karik2880 3 жыл бұрын
Cool
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you!
@Dancopymus
@Dancopymus 2 жыл бұрын
Saudações Rui Através desse método, é possível mudar, por exemplo, o SSID e a Senha do esp8266 ou esp32 remotamente na mesma rede? Se não, teria uma forma de fazer isso? Obrigado
@serkancanbaz1
@serkancanbaz1 Жыл бұрын
Hi. Hello. How can we use virtual button instead of GPIO Pins? Thanks for the video.
@roolon6604
@roolon6604 11 ай бұрын
@Rui Santos thank you for this tutorial. I want to use it do OTA update firmware on my ESP32 but from time to time and I want not to run it all over the time. Connect to my WiFi network, generate mini web server and the rest only for example when I press a microswitch during boot up (plug 5V to ESP board). Otherwise it could slow down my main loop. What do you suggest?
@ilkeraykut7064
@ilkeraykut7064 2 жыл бұрын
Thanks for great tutorial but how can we do this with sim800l not Wifi?I have a website and my esp connects to that website through sim800l and communicates with mqtt server.
@piconano
@piconano 3 жыл бұрын
👍
@AndroidJeek
@AndroidJeek 4 ай бұрын
Great tutorial! I am currently using this OTA. I have questions though, will the OTA break if I will upload a firmware that doesn't have the code with the OTA on it? Cause I tried it and the webserver is still up (even though the new firmware doesn't have the OTA codes) What if I want to remove that OTA functionality?
@MILEI2025
@MILEI2025 3 жыл бұрын
Hello, good afternoon, I am an Argentine student and I want to know how to make a color comparison with the esp32cam and arduino. Thanks
@noushadolakara
@noushadolakara 3 жыл бұрын
Thank you ,well explanation, dear can you help me to do to solve ,esp wifi offline after 5- 10 hours for this what can i do , i am using esp32 for wifi switches
@supersusi3492
@supersusi3492 3 жыл бұрын
Is there a way to do that with an ESP32 cam ?
@raymondmichael4987
@raymondmichael4987 3 жыл бұрын
One idiot disliked this wonderful tutorial
@janeblack8109
@janeblack8109 2 жыл бұрын
Hi. Is it possible to install .bin to esp downloading it from the URL? Thank you
@adamclarkson
@adamclarkson 3 жыл бұрын
Does this still require an ota partition?
@alissongomes2145
@alissongomes2145 3 жыл бұрын
Funciona junto com o Blynk ?
@jensschroder8214
@jensschroder8214 Жыл бұрын
I use ElegantOTA instead of AsyncElegantOTA. AsyncElegantOTA does not compile a program only an compile Error. But ElegantOTA works.
@zyghom
@zyghom 2 жыл бұрын
how about OTA to the ESP that is going to deep sleep after 5 seconds of running? I can think of many solutions, i.e. the MQTT message that is retained and when ESP wakes up it checks and and does not sleep but rather waits for update. But maybe I am trying to open the door that someone opened already? second: there is completely NO PROTECTION of someone uploading new sketch into your ESP... ;-)
@theextremes2491
@theextremes2491 3 жыл бұрын
🔥🔥🔥
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you for watching!
@theextremes2491
@theextremes2491 3 жыл бұрын
@@RuiSantosdotme just asking.... Can we make esp32-cam robot to follow a line (line follower)
@theextremes2491
@theextremes2491 3 жыл бұрын
Like opencv.js
@HarisMaulanaID
@HarisMaulanaID 2 жыл бұрын
how to change wifi ssid and password from web server?
@TheCimonek
@TheCimonek Жыл бұрын
@Rui Santos it makes no sense to keep a cable connection to build .bin and then sending via Wi-Fi it must be a other solution - fully remote Do You have it?
@rollyavecilla
@rollyavecilla 2 жыл бұрын
will this work with the WiFiManager?
@yogeshitaliya473
@yogeshitaliya473 3 жыл бұрын
Nice ओने
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Thank you for watching!
@rajeshprajapati5445
@rajeshprajapati5445 3 жыл бұрын
can we do this with global ip ?
@hammershigh
@hammershigh Жыл бұрын
Does this method actually works? In contrast to the former, which I have never seen any to get to work.
@billferner6741
@billferner6741 2 жыл бұрын
Sorry, that example is NOT working with me. Error cause is missing or not found library 'AsyncTCP.h'. Was it replaced again?
@rafaellauxen3577
@rafaellauxen3577 2 жыл бұрын
Download github.com/me-no-dev/AsyncTCP/archive/master.zip, This library isn’t available to install through the Arduino Library Manager, in your Arduino IDE, you can go to Sketch > Include Library > Add .zip Library and select the library you’ve just downloaded.
@sohan2510
@sohan2510 2 жыл бұрын
Aren't there any way to make the 'update' page password protected ! As now, anyone in my network can access to the address & change the code. So i need to secure it, so only after giving correct password one can access the 'update' page.
@ArduinoTamiza
@ArduinoTamiza 3 жыл бұрын
nice video... why is it unlisted ?
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
It's published now! :)
@spthale
@spthale 3 жыл бұрын
Nice Tutorial it's work....... But when i tried to embedded in my code where ESP8266WebServer server(80) ; already used When i used #include AsyncWebServer server(80); it gives error that conflicant declaration ESP8266WebServer server ........... because of AsyncWebServer server(80);
@thanosk4644
@thanosk4644 3 жыл бұрын
I also have this problem too, and i am looking for a solution.
@san2011ful
@san2011ful 2 жыл бұрын
How can we do OTA for Mega2560 ,using a remote webserver ?
@texasapps2595
@texasapps2595 Жыл бұрын
@Planerful No way man, change your MCU to a ESP32...
@laboratoriobriot4513
@laboratoriobriot4513 3 жыл бұрын
Hello Rui! Does it works with ESP32 Cam?
@RuiSantosdotme
@RuiSantosdotme 3 жыл бұрын
Yes, it works with any ESP32 or ESP8266 compatible board
@laboratoriobriot4513
@laboratoriobriot4513 3 жыл бұрын
@@RuiSantosdotme Hello. I'm trying to upload my .bin file into ESP32CAM through OTA, but is occurring a problem...The web page shows up well and I can choose the .bin file, however after show up 100%, doesn't appear the message OTA Succes and the button BACK. The web page stay on 100% message always. After that the ESP32 CAM reboot and run the old firmware. Can you help me with this issue?
@mohammeddavidzhang-singh5846
@mohammeddavidzhang-singh5846 3 жыл бұрын
@@RuiSantosdotme Great tutorial - no doubt! But it does not work with ESP32 CAM in my case. Depending on the bin file the upload is extremely fast (less than a second) at 54 resp. 58% and stops at this value (failure is perfect reproducible). The bin files have a size of 932 resp. 872 KB. The old firmware is still at the ESP32 CAM. With a "standard" ESP32 module w/o cam, it works perfect.
@kelvynjose8067
@kelvynjose8067 2 жыл бұрын
Add board_build.partitions = min_spiffs.csv to the plataformio.ini file that will work. It is necessary to add in all esp32cam recordings. :)
@zyxwvutsrqponmlkh
@zyxwvutsrqponmlkh 2 жыл бұрын
The audio is all off, like you turned up the base or something.
@adapso3010
@adapso3010 3 жыл бұрын
OTA is a great solution, but the way it is presented is not efficient. What is the advantage of doing an update while on the same network? The ideal is remote updating using a file server, so I suggest searching for HTTP Updade, it is much more effective. OTA é uma grande solução, porém da forma que é apresentada não é eficiente. Qual a vantagem de se fazer uma atualização estando na mesma rede? O ideal é atualização remota com uso de servidor de arquivos, então sugiro buscar por HTTP Updade, é muito mais eficaz.
@flicka401
@flicka401 2 жыл бұрын
There are two other REQUIRED library's that must be installed, you make it sound on the video just 'install OTA' and go, but this is not true, so the question begs to be asked, did you even bother to try and do a 'virgin install'?? I think that often you have lots of library's already installed and you just assume that everybody else has the same 'environ' as you, but sadly, people come to these videos to do the 'OTA', and follow the directions. I highly advise you to to create virgin fresh install 'arduino' and get the OTA to work, and explain from that point of view. Otherwise people can waste a ton of time following your directions.
@RuiSantosdotme
@RuiSantosdotme 2 жыл бұрын
Thanks for the suggestion, please read our blog post and you'll find all the steps. Regards, Rui
@mikoaj1321
@mikoaj1321 Жыл бұрын
You are absolutely right. I've wasted many hours already going down the rabbit hole because the other two libraries cannot be installed via Arduino IDE.
@shahriartasnim7717
@shahriartasnim7717 Жыл бұрын
I'm getting error while doing :build filesystem image" Building file system image from 'data' directory to .pio\build odemcuv2\spiffs.bin warning: can't read source directory *** [.pio\build odemcuv2\spiffs.bin] Error 1 ============================================================ [FAILED] Took 0.80 seconds ============================================================
The EASY Guide To Over-The-Air (OTA) Updates With ArduinoOTA
11:52
Programming Electronics Academy
Рет қаралды 20 М.
Этот Пёс Кое-Что Наделал 😳
00:31
Глеб Рандалайнен
Рет қаралды 2,8 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 117 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
100❤️
00:19
MY💝No War🤝
Рет қаралды 21 МЛН
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Рет қаралды 295 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
#332 ESP32  OTA tutorial with tricks (incl. OTA debugging)
10:17
Andreas Spiess
Рет қаралды 133 М.
#228 ESP32 Over the Air (OTA) Updates with ONE LINE are EASY!
23:26
Ralph S Bacon
Рет қаралды 28 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 551 М.
ESP32 OTA via HTTPS
6:10
Luca Dentella
Рет қаралды 52 М.
OTA with the ESP32 (Over The Air)
8:38
Programming Electronics Academy
Рет қаралды 50 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,6 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 5 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 839 М.
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 2,2 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,9 МЛН