mbed code for UberVest health monitoring
Dependencies: BLE_API mbed nRF51822
Diff: UberVestService.h
- Revision:
- 1:7d2c09f56b33
- Parent:
- 0:b6fae6eb2bfe
- Child:
- 6:808cfc0b9480
--- a/UberVestService.h Mon Oct 19 16:03:58 2015 +0000 +++ b/UberVestService.h Mon Oct 19 19:25:06 2015 +0000 @@ -2,11 +2,12 @@ public: const static uint16_t UBER_VEST_SERVICE_UUID = 0xB000; const static uint16_t BUTTON_CHARACTERISTIC_UUID = 0xB001; - const static uint16_t ECG_CHARACTERISTIC_UID = 0xB002; + const static uint16_t ECG_CHARACTERISTIC_UUID = 0xB002; UberVestService(BLE &_ble, bool buttonPressedInitial, int8_t ecgInitial) : - ble(_ble), buttonState(BUTTON_CHARACTERISTIC_UUID, &buttonPressedInitial, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), - ecgState(ECG_CHARACTERISTIC_UID, &ecgInitial, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY) + ble(_ble), + buttonState(BUTTON_CHARACTERISTIC_UUID, &buttonPressedInitial, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), + ecgState(ECG_CHARACTERISTIC_UUID, &ecgInitial, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY) { GattCharacteristic *charTable[] = {&buttonState, &ecgState}; GattService uberVestService(UberVestService::UBER_VEST_SERVICE_UUID, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));