File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,13 @@ void onError(OTA_CALLBACK_ERROR (fn));
79
79
80
80
### Basic Requirements
81
81
82
- - Flash chip size is 2x the size of the sketch.
82
+ Flash chip size needs a size thats is able to hold the old sketch (currently running) and the new sketch (OTA) at the same time.
83
+ keep in mind that the File system and EEPROM for example needs space too (one time) see [ flash layout] ( ../filesystem.md#flash-layout ) .
84
+ ``` cpp
85
+ ESP.getFreeSketchSpace();
86
+ ```
87
+ can be used for checking the free space for the new sketch.
88
+
83
89
84
90
85
91
The following chapters provide more details and specific methods of doing OTA.
@@ -318,7 +324,7 @@ Example header data:
318
324
[HTTP_X_ESP8266_AP_MAC] => 1A:FE:AA:AA:AA:AA
319
325
[HTTP_X_ESP8266_FREE_SPACE] => 671744
320
326
[HTTP_X_ESP8266_SKETCH_SIZE] => 373940
321
- [HTTP_X_ESP8266_CHIP_SIZE] => 524288
327
+ [HTTP_X_ESP8266_CHIP_SIZE] => 4194304
322
328
[HTTP_X_ESP8266_SDK_VERSION] => 1.3.0
323
329
[HTTP_X_ESP8266_VERSION] => DOOR-7-g14f53a19
324
330
```
You can’t perform that action at this time.
0 commit comments