1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00

Merge pull request #1125 from Links2004/master

improve docs
This commit is contained in:
Markus
2015-12-01 18:17:17 +01:00

View File

@ -79,7 +79,13 @@ void onError(OTA_CALLBACK_ERROR (fn));
### Basic Requirements ### Basic Requirements
- Flash chip size is 2x the size of the sketch. 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.
keep in mind that the File system and EEPROM for example needs space too (one time) see [flash layout](../filesystem.md#flash-layout).
```cpp
ESP.getFreeSketchSpace();
```
can be used for checking the free space for the new sketch.
The following chapters provide more details and specific methods of doing OTA. The following chapters provide more details and specific methods of doing OTA.
@ -318,7 +324,7 @@ Example header data:
[HTTP_X_ESP8266_AP_MAC] => 1A:FE:AA:AA:AA:AA [HTTP_X_ESP8266_AP_MAC] => 1A:FE:AA:AA:AA:AA
[HTTP_X_ESP8266_FREE_SPACE] => 671744 [HTTP_X_ESP8266_FREE_SPACE] => 671744
[HTTP_X_ESP8266_SKETCH_SIZE] => 373940 [HTTP_X_ESP8266_SKETCH_SIZE] => 373940
[HTTP_X_ESP8266_CHIP_SIZE] => 524288 [HTTP_X_ESP8266_CHIP_SIZE] => 4194304
[HTTP_X_ESP8266_SDK_VERSION] => 1.3.0 [HTTP_X_ESP8266_SDK_VERSION] => 1.3.0
[HTTP_X_ESP8266_VERSION] => DOOR-7-g14f53a19 [HTTP_X_ESP8266_VERSION] => DOOR-7-g14f53a19
``` ```