Skip to content

SensorsIot/ESP32-OTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 OTA

MIT License GitHub stars YouTube

ESP32 Arduino OTA

Over-The-Air (OTA) update template for ESP32.

📺 Video Tutorial: https://www.youtube.com/watch?v=1pwqS_NUG7Q

⚠️ Important

The setupOTA() function replaces WiFi.begin() - do not call both! The setupOTA() function handles WiFi connection internally.

// ❌ Wrong - don't do this
WiFi.begin(ssid, password);
setupOTA("DeviceName", ssid, password);

// ✅ Correct - setupOTA handles WiFi
setupOTA("DeviceName", ssid, password);

⚙️ Configuration

📶 WiFi Credentials

Create a credentials.h file in the sketch folder:

#pragma once
const char* mySSID = "your-wifi-name";
const char* myPASSWORD = "your-wifi-password";

Or comment out #include <credentials.h> and define credentials directly in the sketch.

📁 Examples

Folder Description
0TA_Template_Sketch/ Basic OTA template
0TA_Template_Sketch_TelnetStream/ OTA with Telnet debugging

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5