You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Resolved issue #3359
Made severing connections optional as per the patch
in the issue.
Also fixed a minor spacing issue.
* Renamed sever to close and added information to readme
Also my editor automatically removed some odd whitespace at the
end of a few lines.
@@ -200,11 +200,11 @@ The following chapters provide more details and specific methods for OTA updates
200
200
Arduino IDE
201
201
-----------
202
202
203
-
Uploading modules wirelessly from Arduino IDE is intended for the following typical scenarios:
203
+
Uploading modules wirelessly from Arduino IDE is intended for the following typical scenarios:
204
204
205
-
- during firmware development as a quicker alternative to loading over a serial port,
205
+
- during firmware development as a quicker alternative to loading over a serial port,
206
206
207
-
- for updating a small number of modules,
207
+
- for updating a small number of modules,
208
208
209
209
- only if modules are accessible on the same network as the computer with the Arduino IDE.
210
210
@@ -510,6 +510,11 @@ HTTP Server
510
510
511
511
``ESPhttpUpdate`` class can check for updates and download a binary file from HTTP web server. It is possible to download updates from every IP or domain address on the network or Internet.
512
512
513
+
Note that by default this class closes all other connections except the one used by the update, this is because the update method blocks. This means that if there's another application receiving data then TCP packets will build up in the buffer leading to out of memory errors causing the OTA update to fail. There's also a limited number of receive buffers available and all may be used up by other applications.
514
+
515
+
There are some cases where you know that you won't be receiving any data but would still like to send progress updates.
516
+
It's possible to disable the default behaviour (and keep connections open) by calling closeConnectionsOnUpdate(false).
0 commit comments