Hi
This is more of a general memory question. Not sure where to post it.
I have an ESP8266 that logs data from a sensor. The sensor outputs a 1 byte number and the ESP8266 writes it to an array. This sensor produces 1 byte every +-1ms so the array gets full really quick. The largest array i can make is 45000 bytes then it starts complaining that instability may occur.
I can log data for approximately 50 seconds before the array becomes full. I need to log data for as long as I can. If I can log data for 3 minutes it would be great.
My question:
When my array becomes full, can i copy this data to the flash then overwrite the array with new data and so on until i have all the data i need? I understand i can read data from flash but i am not sure if it is possible to write data to flash while the program is running?