-
If my feeder loses its WiFi connection, it seems to go into WiFi connect mode (Balena hotspot) and won't reconnect automatically. I've never used Balena before, is there a setting I need to change? It's a RPI4. Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @kk-sonata, Sorry for not getting back to you sooner. When WiFi Connect starts up, it's often a symptom that your device is either missing a connection to the WiFi router, Internet or both. WiFi Connect will automatically disable if the connection is restored. Things to try: Move the device closer to the wifi router, or (temporarily) connect the device to your router using an ethernet cable. Let us know if you make progress on this. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for debugging this, @kk-sonata! I've looked at the code, and it looks like wifi-connect will stay active forever unless specified. To mitigate this, I have added a variable balena-ads-b/docker-compose.yml Line 23 in d6ed449 Did the change solve the issue on your end? |
Beta Was this translation helpful? Give feedback.
Thanks. It seems that the default ACTIVITY_TIMEOUT setting for Wifi Connect is 0 (infinity). So once it starts an AP it will never stop waiting for someone to enter wifi credentials. I've changed it to a more reasonable setting (120).
Understand it's better to use Ethernet, but it should be able to deal with occasionally losing wifi without the need for manual intervention. Hopefully this setting change solves my issue.