hi i am wondering if there is any way or an example code that will allow me to reconnect a disconnected drone in python.
currently my python script would stall/hang if one of the drones is disconnected.
So I'm wondering if there is any failsafe code that would allow me to reconnect the drone
Reconnecting to a disconnect drone using python.
-
- Beginner
- Posts: 10
- Joined: Sat Sep 01, 2018 3:31 pm
-
- Bitcraze
- Posts: 630
- Joined: Tue Jun 30, 2015 7:47 am
Re: Reconnecting to a disconnect drone using python.
I don't think we have an example for that.
In the asynchronous API you should listen to the connection_lost() call back (in the Crazyflie class) to detect when you lost connection.
In the asynchronous API you should listen to the connection_lost() call back (in the Crazyflie class) to detect when you lost connection.