I am building a simple temperature server using a Pico W. The code is here: https://github.com/edmcman/rpi-temp-ser ... er/main.py
It works well, but eventually becomes disconnected from the wifi. I have noticed that if I query it every 5 minutes to see if it is alive, it never gets disconnected. Is there a proper way to make sure the wifi continues to work correctly?
I had hoped there was some sort of "reconnect" mechanism, but I don't see it.
Or possibly can I use a watchdog mechanism?
It works well, but eventually becomes disconnected from the wifi. I have noticed that if I query it every 5 minutes to see if it is alive, it never gets disconnected. Is there a proper way to make sure the wifi continues to work correctly?
I had hoped there was some sort of "reconnect" mechanism, but I don't see it.
Or possibly can I use a watchdog mechanism?
Statistics: Posted by ejschwar — Sat Dec 21, 2024 11:12 pm