Function rc_mav_set_callback_all#

Function Documentation#

int rc_mav_set_callback_all(void (*func)(void))#

Sets a callback function which is called when any packet arrives.

If a message-specific callback function has been set with rc_mav_set_callback(), this general callback will be called before the message-specific callback.

Parameters:

func[in] The callback function

Returns:

0 on success, -1 on failure