Hi there, I am using a NodeMCU Lolin board to control my home heater. The problem is that I had electricity problems due to maintenance in my street. What I have found is that the board has stopped working. When I entered to the serial monitor to see what are the outputs of the board, I have found that board is empty, no files were there. I used ampy to get a list of all available files, but instead of file names I got this :
So I realized that the board erased the code from flash due to frequent power loses. Does anybody has any idea how to put the board in some kind of sleep of safety shutdown mode when power is lost?