Hi.
I am trying to make some python script about reconnecting to the board.
If i try to connect a nonexisting board i can get dronekit.APIException but when i connect to my existing board and read some info from it and unplug it, i can not get APIException. How can i detect broken link and try to reconnect it again?
Thanks...
You can run a thread which periodically checks the last_heartbeat attribute and takes the necessary actions. The attribute documentation shows an example.
Hi. I am trying to make some python script about reconnecting to the board. If i try to connect a nonexisting board i can get dronekit.APIException but when i connect to my existing board and read some info from it and unplug it, i can not get APIException. How can i detect broken link and try to reconnect it again? Thanks...