ESPHow ToIoT HardwaresTutorials/DIY

ArduinoOTA ESP32: Wi-Fi (OTA) Wireless Update from the Arduino IDE

Over the Air (OTA) through Web browser

An over-the-air update is the wireless delivery of new software or data to mobile devices. Wireless carriers and original equipment manufacturers (OEMs) typically use over-the-air (OTA) updates to deploy firmware and configure phones for use on their networks. With the rise of smartphones, tablets and internet of things (IoT)devices, carriers and manufacturers have also turned to over-the-air updates for deploying new operating systems (OSes) to these devices.

You need to install the Arduino OTA library for ESp32 on the Arduino IDE. So please Visit this article and follow intructions https://iotbyhvm.ooo/arduino-esp32-support-on-windows-and-ubuntu/

ArduinoOTA ESP32: Wi-Fi (OTA) Wireless Update from the Arduino IDE

Follow Steps given below :

  • Prepare the sketch and configuration for initial upload with a serial port
  • Start Arduino IDE and load sketch OTAWebUpdater.ino available under File > Examples > OTAWebUpdater.ino
  • Update ssid and pass in the sketch so the module can join your Wi-Fi network
  • Open File > Preferences, look for “Show verbose output during:” and check out “compilation” option

  • Upload sketch (Ctrl+U)
  • Now open web browser and enter Module’s IP address in the address bar in the web browser (Remember ESP32 and Web browser should be in same network ). Once entered, browser should display a form

  • Now click on Login button and browser will display a upload form

otaFor Uploading the New Firmware you need to provide the Binary File of your Code.Exporting Binary file of the Firmware (Code)

  1. Open up the Arduino IDE
  2. Open up the Code, for Exporting up Binary file
  3. Now go to Sketch > export compiled Binary
  4. Binary file is exported to the same Directory where your code is present

Once you are comfortable with this procedure go ahead and modify OTAWebUpdater.ino sketch to print some additional messages, compile it, Export new binary file and upload it using web browser to see entered changes on a Serial Monitor.

 

Harshvardhan Mishra

Hi, I'm Harshvardhan Mishra. Tech enthusiast and IT professional with a B.Tech in IT, PG Diploma in IoT from CDAC, and 6 years of industry experience. Founder of HVM Smart Solutions, blending technology for real-world solutions. As a passionate technical author, I simplify complex concepts for diverse audiences. Let's connect and explore the tech world together! If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee! Thank you for reading my blog! Happy learning! Linkedin