Function rc_mav_set_callback_connection_lost#
Defined in File mavlink_udp.h
Function Documentation#
-
int rc_mav_set_callback_connection_lost(void (*func)(void))#
Sets a callback function to be called when connection_timeout has been reached without receiving any messages.
connection_timeout is set with rc_mav_init
- Parameters:
func – [in] The callback function
- Returns:
0 on success, -1 on failure