Log serial output to SPIFFS
Posted: Fri Jan 25, 2019 10:55 am
Is there a reliable way to proxy all serial outputs, code generated and errors to a file inside the SPIFFS of the ESP?
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.