BLE.central().connected()
is true
when a disconnect has happened
#334
Labels
type: imperfection
Perceived defect in any part of project
This bug seems to be similar to the closed issue #33 and is referenced in this forum thread: https://forum.arduino.cc/t/nano-33-ble-arduinoble-library-handling-loss-of-connection/620170
I'm using Arduino IDE 2.2.1 with ArduinoBLE 1.3.6 and the Seeed XIAO BLUE - nRF52840.
I've got example code below, the first is the arduino sketch I'm using which just sets up the BLE with a single characteristic and then waits for a connection. The central is a python script using
bleak
. It should just listen for updates to the characteristic then get the notify. This works fine, but when I kill the python script the arduino device still thinks it is connected and thus needs to be reset.Am I missing something conceptual? I expected that
central.connected()
would befalse
and thus break out of the data acquisition loop.The text was updated successfully, but these errors were encountered: