Badge disconnects if CONNECTION_TIMEOUT_MS milliseconds have passed since last BLE activity (connect/receive).
Slightly hack-y; implemented as a timer interrupt, so that the BLE timeout occurs even if the badge is sleeping. (as opposed to something implemented entirely within the main loop)
Badge disconnects if CONNECTION_TIMEOUT_MS milliseconds have passed since last BLE activity (connect/receive).
Slightly hack-y; implemented as a timer interrupt, so that the BLE timeout occurs even if the badge is sleeping. (as opposed to something implemented entirely within the main loop)