Check board connected state and (clean) disconnect
How can I check the connection status of the board in python? The MetaWear class has a _on_disconnect() function but it has no code inside.
I would like to detect when a board gets disconnected and why, that is, difference between calling disconnect() and other reasons (out-of-range or battery depleted).
Also, when I disconnect and reconnect again, the subscribed handlers are still there. Which is the preferrred way to cleanly disconnect? Do i have to call mbl_mw_metawearboard_tear_down before disconnect()?
This discussion has been closed.