Loading
Loading
IoT Lab content is currently available in Arabic only. We're working on an English version.
عرض بالعربية →Upload new code to ESP32 via Wi-Fi without a USB cable.
#include <WiFi.h>
#include <ArduinoOTA.h>
void setup() {
WiFi.begin("SSID", "PASS");
while(WiFi.status() != WL_CONNECTED) delay(500);
ArduinoOTA.begin();
}
void loop() {
ArduinoOTA.handle();
}Forgetting to put ArduinoOTA.handle() in the loop() function — without it the board cannot listen for new network update requests and you'll be forced to use the cable again.