I've got some basic filter code setup (but not yet tested).
Dependencies: BLE_API Queue mbed nRF51822
Fork of BLE_HeartRate by
Revision 50:477004d54431, committed 2014-11-17
- Comitter:
- rgrover1
- Date:
- Mon Nov 17 17:53:57 2014 +0000
- Parent:
- 49:5dfc445d89cd
- Child:
- 51:cba5deb3b404
- Commit message:
- add a check for gap-connectedness before polling for sensor data.
Changed in this revision
BLE_HeartRate.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BLE_HeartRate.lib Mon Nov 17 17:53:57 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_HeartRate/#5dfc445d89cd
--- a/main.cpp Wed Nov 05 14:15:20 2014 +0000 +++ b/main.cpp Mon Nov 17 17:53:57 2014 +0000 @@ -70,7 +70,7 @@ ble.startAdvertising(); while (true) { - if (triggerSensorPolling) { + if (triggerSensorPolling && ble.getGapState().connected) { triggerSensorPolling = false; /* Do blocking calls or whatever is necessary for sensor polling. */