Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
const char* ssid = "Your_SSID"; const char* password = "Your_PASSWORD"; void setup() { Serial.begin(115200); // Connect to Wi-Fi WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println("Connecting to WiFi..."); } Serial.println("Connected to WiFi"); // Start OTA ArduinoOTA.begin(); Serial.println("OTA Ready"); // Optional: Set Hostname and Password // ArduinoOTA.setHostname("esp32-ota"); // ArduinoOTA.setPassword("admin"); } void loop() { // Handle OTA Updates ArduinoOTA.handle(); // Your code here (e.g., blink an LED) }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)