I have an ESP8266 running that sometimes crash and restarts. I want to monitor my device state, but I can't have it connect to a serial console all day, what will be ideal is to proxy all the data that normally goes out to Serial into a file. I know there flash size limitation but one idea could be after adding a certain amount of lines to it, just start from 0 again, and stop after a crash or a restart due to a crash.
I have an ESP8266 running that sometimes crash and restarts. I want to monitor my device state, but I can't have it connect to a serial console all day, what will be ideal is to proxy all the data that normally goes out to Serial into a file. I know there flash size limitation but one idea could be after adding a certain amount of lines to it, just start from 0 again, and stop after a crash or a restart due to a crash.