Defined in File mavlink_udp.h
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.
0 on success, -1 on failure