1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

WIP - Update ArduinoOTA and examples with MDNS.update() calls (#5494)

* ArduinoOTA: allow use without MDNS, add MDNS.update() in handle()

* Update examples with MDNS.update() in loop

* Update CaptivePortalAdvanced.ino

Fix typo

* Update CaptivePortalAdvanced.ino

astyle

* Update Arduino_Wifi_AVRISP.ino

astyle
This commit is contained in:
Develo
2018-12-14 03:29:32 -03:00
committed by GitHub
parent 8ede8f1459
commit e9d052c621
18 changed files with 41 additions and 11 deletions

View File

@ -60,9 +60,9 @@ class ArduinoOTAClass
void onProgress(THandlerFunction_Progress fn);
//Starts the ArduinoOTA service
void begin();
void begin(bool useMDNS = true);
//Call this in loop() to run the service
//Call this in loop() to run the service. Also calls MDNS.update() when begin() or begin(true) is used.
void handle();
//Gets update command type after OTA has started. Either U_FLASH or U_SPIFFS
@ -76,6 +76,7 @@ class ArduinoOTAClass
UdpContext *_udp_ota;
bool _initialized;
bool _rebootOnSuccess;
bool _useMDNS;
ota_state_t _state;
int _size;
int _cmd;