Open sgbaird opened 2 months ago
Restarted, and it's still been disconnecting. It seems to work for a bit but then cuts out after ~20 seconds. Implementing error logging for each of the devices would probably make sense.
https://huggingface.co/spaces/AccelerationConsortium/fan-control
Aside: I should also probably check to see if there's an issue with sending commands from two instances of the web app.
Try watchdog timer (suggested on Reddit):
https://docs.micropython.org/en/latest/library/machine.WDT.html
Probably some issue with the Pico wireless. Maybe I need some more robust communication code.
In particular, writing the error might be necessary since it was originally working.
Right now it's powered and fan is running. I'll hard reset it and check to see if that resolves it.
EDIT: seems ok for now (2024-09-17)