Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: services/HeartRateService.h
- Revision:
- 338:fd32ec0ebd98
- Parent:
- 277:1407d2f1ce3c
diff -r e7c2eb38f5cc -r fd32ec0ebd98 services/HeartRateService.h --- a/services/HeartRateService.h Wed Apr 15 09:05:11 2015 +0100 +++ b/services/HeartRateService.h Wed Apr 15 09:05:11 2015 +0100 @@ -58,7 +58,7 @@ valueBytes(hrmCounter), hrmRate(GattCharacteristic::UUID_HEART_RATE_MEASUREMENT_CHAR, valueBytes.getPointer(), valueBytes.getNumValueBytes(), HeartRateValueBytes::MAX_VALUE_BYTES, - GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), + GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), hrmLocation(GattCharacteristic::UUID_BODY_SENSOR_LOCATION_CHAR, &location), controlPoint(GattCharacteristic::UUID_HEART_RATE_CONTROL_POINT_CHAR, &controlPointValue) { setupService();