Keeping the ESP8266 responsive...Best practices?
Posted: Sun Jan 24, 2021 3:01 pm
Hello, my name is Dirk and I am new to this Forum.
I just try to find my way into this little universe and so I read a lot in the docs and in this forum lately.
At the moment my problem is, that I struggle to stop my esp8266 from outputting to the console and be responsive for file transfers and so. I hooked up a BMP180 Sensor and created a timer callback for reading and outputting values to the console. It is a real pain to try to stop that and change my program because it starts over after a hard reset. (My IDE is Thonny at the moment) Mostly I am only successful when I disconnect the sensor.
I could attach a switch so I could suppress these actions in the program depending on the switches position, but I would like to know if there is a simpler method to regain control or probably some best practices on how such programs have to be designed to prevent such behaviour.
Thanks in advance
Dirk
I just try to find my way into this little universe and so I read a lot in the docs and in this forum lately.
At the moment my problem is, that I struggle to stop my esp8266 from outputting to the console and be responsive for file transfers and so. I hooked up a BMP180 Sensor and created a timer callback for reading and outputting values to the console. It is a real pain to try to stop that and change my program because it starts over after a hard reset. (My IDE is Thonny at the moment) Mostly I am only successful when I disconnect the sensor.
I could attach a switch so I could suppress these actions in the program depending on the switches position, but I would like to know if there is a simpler method to regain control or probably some best practices on how such programs have to be designed to prevent such behaviour.
Thanks in advance
Dirk