HumanDynamics / openbadge

MIT License
49 stars 19 forks source link

Added badge connection timeout - disconnects if server stalls. #33

Closed anguslocke closed 8 years ago

anguslocke commented 8 years ago

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)