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:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user