mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Update OTA Sketch
This commit is contained in:
parent
b605ab316e
commit
1cd50e481f
@ -54,8 +54,11 @@ void loop() {
|
|||||||
WiFiClient client;
|
WiFiClient client;
|
||||||
if (client.connect(remote, port)) {
|
if (client.connect(remote, port)) {
|
||||||
|
|
||||||
Serial.setDebugOutput(true);
|
uint32_t written;
|
||||||
while(!Update.isFinished()) Update.write(client);
|
while(!Update.isFinished()){
|
||||||
|
written = Update.write(client);
|
||||||
|
if(written > 0) client.print(written, DEC);
|
||||||
|
}
|
||||||
Serial.setDebugOutput(false);
|
Serial.setDebugOutput(false);
|
||||||
|
|
||||||
if(Update.end()){
|
if(Update.end()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user