Function rc_mav_cleanup#

Function Documentation#

int rc_mav_cleanup(void)#

Closes UDP port and stops network port listening thread.

This is a blocking function call that returns after the network port listening thread has exited and the UDP port has closed. If the thread fails to exit before timeout a warning message is displayed and the function returns -1 to indicate there was an issue. This should be called before your program exits.

Returns:

0 on success, -1 on failure