Moderator: igrr
No ! it should not slow down anything while no OTA operation is done.
It simply check if an OTA request is received, and returns if not.
Your slowdown issue is probably caused by something else.
Asuming you have some thing like this in your sketch already:
#include <ESP8266WiFi.h>
const char* ssid = "<ssid>";
const char* password = "<password>";
void setup() {
Serial.begin(115200);
Serial.println("Booting");
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
}
}
void loop() {
}
is all that needs to be added:
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
ArduinoOTA.begin(); // added to void setup()
ArduinoOTA.handle(); // added to void loop()
This appears to work - is it realy that simple? Or am I missing something?