-->
Page 1 of 1

How much flash does my ESP8266 have?

PostPosted: Sat Jun 18, 2016 9:02 am
by lotus49
I need to be able to store a small amount of data permanently for my project. I have read this viewtopic.php?f=34&t=2662 thread which explains how to read and write to flash memory. This suggests starting at the top of memory (less a bit where the wifi config is apparently stored) but to do that, I need to know how much memory I have.

I use the Arduino IDE to programme my ESP8266 and that says "NodeMCU 1.0 (ESP-12E Module), 80MHz, 921600, 4M (3M SPIFFS) on /dev/ttyUSB0". Can this information be relied upon and does it mean I have 4MB of flash?

Re: How much flash does my ESP8266 have?

PostPosted: Sat Jun 18, 2016 10:38 am
by martinayotte
If you are using Arduino ESP framework, why not simply use the EEPROM library or even better SPIFFS with a JSON file, you won't need to track the size of the Flash.

Re: How much flash does my ESP8266 have?

PostPosted: Sat Jun 18, 2016 1:22 pm
by lotus49
For the simple reason that I am new to this and wasn't aware that either of those was an option.

I just need to store a 160 byte key so the EEPROM library sounds like it will fit the bill perfectly. I shall look into it now.

Thank you once again for your help.