HumanDynamics / openbadge

MIT License
49 stars 19 forks source link

Badge connection timeout - disconnect if server stalls #34

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).

anguslocke commented 8 years ago

Sending data now refreshes the BLE timeout.

OrenLederman commented 8 years ago

Deleted