ESP8266/OTA: Difference between revisions
Jump to navigation
Jump to search
do it Over Teh Air $ff6600 |
Memory probe #ff6600 |
||
| Line 4: | Line 4: | ||
It's also important to know the flash memory size, ESP.getFlashChipSize() may be useful. | It's also important to know the flash memory size, ESP.getFlashChipSize() may be useful. | ||
<pre> | |||
void setup() { | |||
// put your setup code here, to run once: | |||
Serial.begin(115200); | |||
Serial.println("Flash Memory Stuff"); | |||
Serial.println("ESP ID: "); | |||
Serial.println(ESP.getChipId()); | |||
Serial.println("Flash ID: "); | |||
Serial.println(ESP.getFlashChipId()); | |||
Serial.println("Flash Size: "); | |||
Serial.println(ESP.getFlashChipSize()); | |||
Serial.println("Flash Speed: "); | |||
Serial.println(ESP.getFlashChipSpeed()); | |||
} | |||
</pre> | |||
Serial output from an ESP-01 | |||
<pre> | |||
Flash Memory Stuff | |||
ESP ID: | |||
14478709 | |||
Flash ID: | |||
1327328 | |||
Flash Size: | |||
524288 | |||
Flash Speed: | |||
40000000 | |||
</pre> | |||
* https://harizanov.com/2015/06/firmware-over-the-air-fota-for-esp8266-soc/ | * https://harizanov.com/2015/06/firmware-over-the-air-fota-for-esp8266-soc/ | ||
Revision as of 18:22, 3 November 2015
Exploring Over The Air (OTA) updates.
There is an OTA option in the Arduino IDE, however there doesn't seem to be much on how to use it.
It's also important to know the flash memory size, ESP.getFlashChipSize() may be useful.
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Flash Memory Stuff");
Serial.println("ESP ID: ");
Serial.println(ESP.getChipId());
Serial.println("Flash ID: ");
Serial.println(ESP.getFlashChipId());
Serial.println("Flash Size: ");
Serial.println(ESP.getFlashChipSize());
Serial.println("Flash Speed: ");
Serial.println(ESP.getFlashChipSpeed());
}
Serial output from an ESP-01
Flash Memory Stuff ESP ID: 14478709 Flash ID: 1327328 Flash Size: 524288 Flash Speed: 40000000