Check Connection

Using mavlink command [mavutil.mavlink_connection('udpin:port_num),
wait_heartbeat()] like this we can check the connection, but there is a problem like, won’t be receiving an acknowledgement if there is no connection. In programing point this gives trouble by stuck in this line when there is connection issue and waiting for heartbeat. Is there any other better way to check connection ?

2 Likes

Hi,
@Furksan_Dursun did you find a solution to check if the connection is established? I have the same problem. I need to check that the connection is established and react in some way if there is a connection issue?
Can anyone help me?
Thanks already and greetings