We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ac78a commit 5b84d5eCopy full SHA for 5b84d5e
src/ArduinoOTA.h
@@ -62,10 +62,10 @@ class ArduinoOTAClass : public WiFiOTAClass {
62
}
63
64
void end() {
65
-#if defined(ESP8266) || defined(ESP32)
66
- server.stop();
67
-#elif defined(_WIFI_ESP_AT_H_)
+#if defined(_WIFI_ESP_AT_H_)|| defined(WiFiS3_h) || defined(ESP32) || defined(UIPETHERNET_H)
68
server.end();
+#elif defined(ESP8266)
+ server.stop();
69
#else
70
//#warning "The networking library doesn't have a function to stop the server"
71
#endif
0 commit comments