1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-29 05:21:37 +03:00

Add MD5 to core, Fix OTA examples and Digest Authentication to OTA and espota.py

This commit is contained in:
Me No Dev
2015-11-09 00:42:30 +02:00
parent e613e42249
commit a8976a01fd
13 changed files with 518 additions and 247 deletions

View File

@ -38,10 +38,6 @@ const char* ap_default_psk = "esp8266esp8266"; ///< Default PSK.
/// Uncomment the next line for verbose output over UART.
//#define SERIAL_VERBOSE
/// OTA server handle.
ArduinoOTA ota_server;
/**
* @brief Read WiFi connection information from file system.
* @param ssid String pointer for storing SSID.
@ -244,7 +240,8 @@ void setup()
}
// Start OTA server.
ota_server.setup();
ArduinoOTA.setHostname((const char *)hostname.c_str());
ArduinoOTA.begin();
}
@ -254,7 +251,7 @@ void setup()
void loop()
{
// Handle OTA server.
ota_server.handle();
ArduinoOTA.handle();
yield();
}