Browse Source

Possibility to disable OTA

save ~3k
gpiosensors
Mathieu Maret 5 years ago
parent
commit
87085fba3d
  1. 3
      WifiControlSensor/WifiControlSensor.ino

3
WifiControlSensor/WifiControlSensor.ino

@ -118,8 +118,8 @@ void WifiSetup(int bootmode, char *confSsid, char *confPassword, char *confHost,
SKETCH_DEBUG_PRINT("My IP address: ");
SKETCH_DEBUG_PRINTLN(myIP);
}
void OTASetup() {
#ifndef CONFIF_DISABLE_OTA
// Port defaults to 8266
// ArduinoOTA.setPort(8266);
@ -165,6 +165,7 @@ void OTASetup() {
SKETCH_DEBUG_PRINT("IP address: ");
SKETCH_DEBUG_PRINTLN(WiFi.localIP());
SKETCH_DEBUG_PRINTF("Free Space: %d\n", ESP.getFreeSketchSpace());
#endif
}
void setup() {

Loading…
Cancel
Save