kaeverens / waterbot

a robot for watering plants
The Unlicense
0 stars 0 forks source link

if no message from port in 5s and bot is in state 3, try to reconnect #27

Closed kaeverens closed 3 years ago

kaeverens commented 3 years ago

if the bot has not received a message from port (even a ping) in 5 seconds and it is in state 3 (ready for commands), then the bot may have lost its serial connection. back away from the port, then try to reconnect.

kaeverens commented 3 years ago

done. used 20s as the delay