Reconnecting to a disconnect drone using python.

Discussions and questions about the Crazyradio
Post Reply
albussimba
Beginner
Posts: 10
Joined: Sat Sep 01, 2018 3:31 pm

Reconnecting to a disconnect drone using python.

Post by albussimba »

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
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Reconnecting to a disconnect drone using python.

Post by kristoffer »

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.
Post Reply