Fork of BLE_SecureHeartRate : should this 'work' i.e. require a secure connection on an nRF51-DK? Hopefully I'm just missing something obvious - or is this broken?
Dependencies: BLE_API mbed nRF51822
Fork of BLE_SecureHeartRate by
HeartRateSecService.h@11:70342535895d, 2016-05-27 (annotated)
- Committer:
- tomg
- Date:
- Fri May 27 16:55:05 2016 +0000
- Revision:
- 11:70342535895d
- Parent:
- 10:d391a5f1df7c
use IO_CAPS_KEYBOARD_DISPLAY (still doesn't work)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rgrover1 | 3:b852bf8d6fad | 1 | /* mbed Microcontroller Library |
rgrover1 | 3:b852bf8d6fad | 2 | * Copyright (c) 2006-2013 ARM Limited |
rgrover1 | 3:b852bf8d6fad | 3 | * |
rgrover1 | 3:b852bf8d6fad | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
rgrover1 | 3:b852bf8d6fad | 5 | * you may not use this file except in compliance with the License. |
rgrover1 | 3:b852bf8d6fad | 6 | * You may obtain a copy of the License at |
rgrover1 | 3:b852bf8d6fad | 7 | * |
rgrover1 | 3:b852bf8d6fad | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
rgrover1 | 3:b852bf8d6fad | 9 | * |
rgrover1 | 3:b852bf8d6fad | 10 | * Unless required by applicable law or agreed to in writing, software |
rgrover1 | 3:b852bf8d6fad | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
rgrover1 | 3:b852bf8d6fad | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
rgrover1 | 3:b852bf8d6fad | 13 | * See the License for the specific language governing permissions and |
rgrover1 | 3:b852bf8d6fad | 14 | * limitations under the License. |
rgrover1 | 3:b852bf8d6fad | 15 | */ |
rgrover1 | 3:b852bf8d6fad | 16 | |
rgrover1 | 3:b852bf8d6fad | 17 | #ifndef __BLE_HEART_RATE_SEC_SAMPLE_SERVICE_H__ |
rgrover1 | 3:b852bf8d6fad | 18 | #define __BLE_HEART_RATE_SEC_SAMPLE_SERVICE_H__ |
rgrover1 | 3:b852bf8d6fad | 19 | |
rgrover1 | 5:ed2cb43f3589 | 20 | #include "BLE.h" |
rgrover1 | 3:b852bf8d6fad | 21 | |
rgrover1 | 3:b852bf8d6fad | 22 | /** |
rgrover1 | 3:b852bf8d6fad | 23 | * @class HeartRateSecService |
rgrover1 | 3:b852bf8d6fad | 24 | * @brief BLE Service for HeartRate. This BLE Service contains the location of the sensor, the heartrate in beats per minute. <br> |
rgrover1 | 3:b852bf8d6fad | 25 | * Service: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.heart_rate.xml <br> |
rgrover1 | 3:b852bf8d6fad | 26 | * HRM Char: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml <br> |
rgrover1 | 3:b852bf8d6fad | 27 | * Location: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.body_sensor_location.xml |
rgrover1 | 3:b852bf8d6fad | 28 | */ |
rgrover1 | 3:b852bf8d6fad | 29 | class HeartRateSecService { |
rgrover1 | 3:b852bf8d6fad | 30 | public: |
rgrover1 | 3:b852bf8d6fad | 31 | /** |
rgrover1 | 3:b852bf8d6fad | 32 | * @enum SensorLocation |
rgrover1 | 3:b852bf8d6fad | 33 | * @brief Location of HeartRate sensor on body. |
rgrover1 | 3:b852bf8d6fad | 34 | */ |
rgrover1 | 3:b852bf8d6fad | 35 | enum { |
rgrover1 | 3:b852bf8d6fad | 36 | LOCATION_OTHER = 0, /*!< Other Location */ |
rgrover1 | 3:b852bf8d6fad | 37 | LOCATION_CHEST, /*!< Chest */ |
rgrover1 | 3:b852bf8d6fad | 38 | LOCATION_WRIST, /*!< Wrist */ |
rgrover1 | 3:b852bf8d6fad | 39 | LOCATION_FINGER, /*!< Finger */ |
rgrover1 | 3:b852bf8d6fad | 40 | LOCATION_HAND, /*!< Hand */ |
rgrover1 | 3:b852bf8d6fad | 41 | LOCATION_EAR_LOBE, /*!< Earlobe */ |
rgrover1 | 3:b852bf8d6fad | 42 | LOCATION_FOOT, /*!< Foot */ |
rgrover1 | 3:b852bf8d6fad | 43 | }; |
rgrover1 | 3:b852bf8d6fad | 44 | |
rgrover1 | 3:b852bf8d6fad | 45 | public: |
rgrover1 | 3:b852bf8d6fad | 46 | /** |
rgrover1 | 3:b852bf8d6fad | 47 | * @brief Constructor with 8bit HRM Counter value. |
rgrover1 | 3:b852bf8d6fad | 48 | * |
rgrover1 | 3:b852bf8d6fad | 49 | * @param[ref] _ble |
rgrover1 | 3:b852bf8d6fad | 50 | * Reference to the underlying BLEDevice. |
rgrover1 | 3:b852bf8d6fad | 51 | * @param[in] hrmCounter (8-bit) |
rgrover1 | 3:b852bf8d6fad | 52 | * initial value for the hrm counter. |
rgrover1 | 3:b852bf8d6fad | 53 | * @param[in] location |
rgrover1 | 3:b852bf8d6fad | 54 | * Sensor's location. |
rgrover1 | 3:b852bf8d6fad | 55 | */ |
rgrover1 | 6:715150f7f293 | 56 | HeartRateSecService(BLE &_ble, uint8_t hrmCounter, uint8_t location) : |
rgrover1 | 3:b852bf8d6fad | 57 | ble(_ble), |
rgrover1 | 3:b852bf8d6fad | 58 | valueBytes(hrmCounter), |
rgrover1 | 3:b852bf8d6fad | 59 | hrmRate(GattCharacteristic::UUID_HEART_RATE_MEASUREMENT_CHAR, valueBytes.getPointer(), |
rgrover1 | 3:b852bf8d6fad | 60 | valueBytes.getNumValueBytes(), HeartRateValueBytes::MAX_VALUE_BYTES, |
rgrover1 | 3:b852bf8d6fad | 61 | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), |
rgrover1 | 3:b852bf8d6fad | 62 | hrmLocation(GattCharacteristic::UUID_BODY_SENSOR_LOCATION_CHAR, &location), |
rgrover1 | 3:b852bf8d6fad | 63 | controlPoint(GattCharacteristic::UUID_HEART_RATE_CONTROL_POINT_CHAR, &controlPointValue) { |
rgrover1 | 3:b852bf8d6fad | 64 | setupService(); |
rgrover1 | 3:b852bf8d6fad | 65 | } |
rgrover1 | 3:b852bf8d6fad | 66 | |
rgrover1 | 3:b852bf8d6fad | 67 | /** |
rgrover1 | 3:b852bf8d6fad | 68 | * @brief Constructor with a 16-bit HRM Counter value. |
rgrover1 | 3:b852bf8d6fad | 69 | * |
rgrover1 | 3:b852bf8d6fad | 70 | * @param[in] _ble |
rgrover1 | 3:b852bf8d6fad | 71 | * Reference to the underlying BLEDevice. |
rgrover1 | 3:b852bf8d6fad | 72 | * @param[in] hrmCounter (8-bit) |
rgrover1 | 3:b852bf8d6fad | 73 | * initial value for the hrm counter. |
rgrover1 | 3:b852bf8d6fad | 74 | * @param[in] location |
rgrover1 | 3:b852bf8d6fad | 75 | * Sensor's location. |
rgrover1 | 3:b852bf8d6fad | 76 | */ |
rgrover1 | 6:715150f7f293 | 77 | HeartRateSecService(BLE &_ble, uint16_t hrmCounter, uint8_t location) : |
rgrover1 | 3:b852bf8d6fad | 78 | ble(_ble), |
rgrover1 | 3:b852bf8d6fad | 79 | valueBytes(hrmCounter), |
rgrover1 | 3:b852bf8d6fad | 80 | hrmRate(GattCharacteristic::UUID_HEART_RATE_MEASUREMENT_CHAR, valueBytes.getPointer(), |
rgrover1 | 3:b852bf8d6fad | 81 | valueBytes.getNumValueBytes(), HeartRateValueBytes::MAX_VALUE_BYTES, |
rgrover1 | 3:b852bf8d6fad | 82 | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), |
rgrover1 | 3:b852bf8d6fad | 83 | hrmLocation(GattCharacteristic::UUID_BODY_SENSOR_LOCATION_CHAR, &location), |
rgrover1 | 3:b852bf8d6fad | 84 | controlPoint(GattCharacteristic::UUID_HEART_RATE_CONTROL_POINT_CHAR, &controlPointValue) { |
rgrover1 | 3:b852bf8d6fad | 85 | setupService(); |
rgrover1 | 3:b852bf8d6fad | 86 | } |
tomg | 8:32cdc49c027e | 87 | |
tomg | 10:d391a5f1df7c | 88 | /*void setSecurityStatus(Gap::Handle_t handle) { |
tomg | 10:d391a5f1df7c | 89 | SecurityManager::LinkSecurityStatus_t status; |
tomg | 10:d391a5f1df7c | 90 | ble_error_t ret = ble.securityManager().setLinkSecurity(handle, &status); |
tomg | 10:d391a5f1df7c | 91 | if (BLE_ERROR_NONE == ret) { |
tomg | 10:d391a5f1df7c | 92 | printf("OK: getLinkSecurity status: "); |
tomg | 10:d391a5f1df7c | 93 | switch (status) { |
tomg | 10:d391a5f1df7c | 94 | case SecurityManager::NOT_ENCRYPTED: // The link is not secured. |
tomg | 10:d391a5f1df7c | 95 | printf("NOT_ENCRYPTED"); |
tomg | 10:d391a5f1df7c | 96 | break; |
tomg | 10:d391a5f1df7c | 97 | case SecurityManager::ENCRYPTION_IN_PROGRESS: // Link security is being established |
tomg | 10:d391a5f1df7c | 98 | printf("ENCRYPTION_IN_PROGRESS"); |
tomg | 10:d391a5f1df7c | 99 | break; |
tomg | 10:d391a5f1df7c | 100 | case SecurityManager::ENCRYPTED: |
tomg | 10:d391a5f1df7c | 101 | printf("ENCRYPTED"); |
tomg | 10:d391a5f1df7c | 102 | break; |
tomg | 10:d391a5f1df7c | 103 | } |
tomg | 10:d391a5f1df7c | 104 | printf("\r\n"); |
tomg | 10:d391a5f1df7c | 105 | } else { |
tomg | 10:d391a5f1df7c | 106 | printf("FAIL: getLinkSecurity ret %i\r\n", ret); |
tomg | 10:d391a5f1df7c | 107 | } |
tomg | 10:d391a5f1df7c | 108 | }*/ |
tomg | 10:d391a5f1df7c | 109 | |
tomg | 8:32cdc49c027e | 110 | void outputSecurityStatus(Gap::Handle_t handle) { |
tomg | 8:32cdc49c027e | 111 | SecurityManager::LinkSecurityStatus_t status; |
tomg | 8:32cdc49c027e | 112 | ble_error_t ret = ble.securityManager().getLinkSecurity(handle, &status); |
tomg | 8:32cdc49c027e | 113 | if (BLE_ERROR_NONE == ret) { |
tomg | 8:32cdc49c027e | 114 | printf("OK: getLinkSecurity status: "); |
tomg | 8:32cdc49c027e | 115 | switch (status) { |
tomg | 8:32cdc49c027e | 116 | case SecurityManager::NOT_ENCRYPTED: /**< The link is not secured. */ |
tomg | 8:32cdc49c027e | 117 | printf("NOT_ENCRYPTED"); |
tomg | 8:32cdc49c027e | 118 | break; |
tomg | 8:32cdc49c027e | 119 | case SecurityManager::ENCRYPTION_IN_PROGRESS: /**< Link security is being established.*/ |
tomg | 8:32cdc49c027e | 120 | printf("ENCRYPTION_IN_PROGRESS"); |
tomg | 8:32cdc49c027e | 121 | break; |
tomg | 8:32cdc49c027e | 122 | case SecurityManager::ENCRYPTED: |
tomg | 8:32cdc49c027e | 123 | printf("ENCRYPTED"); |
tomg | 8:32cdc49c027e | 124 | break; |
tomg | 8:32cdc49c027e | 125 | } |
tomg | 8:32cdc49c027e | 126 | printf("\r\n"); |
tomg | 8:32cdc49c027e | 127 | } else { |
tomg | 8:32cdc49c027e | 128 | printf("FAIL: getLinkSecurity ret %i\r\n", ret); |
tomg | 8:32cdc49c027e | 129 | } |
tomg | 8:32cdc49c027e | 130 | } |
rgrover1 | 3:b852bf8d6fad | 131 | |
rgrover1 | 3:b852bf8d6fad | 132 | /** |
rgrover1 | 3:b852bf8d6fad | 133 | * @brief Set a new 8-bit value for heart rate. |
rgrover1 | 3:b852bf8d6fad | 134 | * |
rgrover1 | 3:b852bf8d6fad | 135 | * @param[in] hrmCounter |
rgrover1 | 3:b852bf8d6fad | 136 | * HeartRate in bpm. |
rgrover1 | 3:b852bf8d6fad | 137 | */ |
rgrover1 | 3:b852bf8d6fad | 138 | void updateHeartRate(uint8_t hrmCounter) { |
rgrover1 | 3:b852bf8d6fad | 139 | valueBytes.updateHeartRate(hrmCounter); |
rgrover1 | 6:715150f7f293 | 140 | ble.gattServer().write(hrmRate.getValueAttribute().getHandle(), valueBytes.getPointer(), valueBytes.getNumValueBytes()); |
rgrover1 | 3:b852bf8d6fad | 141 | } |
rgrover1 | 3:b852bf8d6fad | 142 | |
rgrover1 | 3:b852bf8d6fad | 143 | /** |
rgrover1 | 3:b852bf8d6fad | 144 | * Set a new 16-bit value for heart rate. |
rgrover1 | 3:b852bf8d6fad | 145 | * |
rgrover1 | 3:b852bf8d6fad | 146 | * @param[in] hrmCounter |
rgrover1 | 3:b852bf8d6fad | 147 | * HeartRate in bpm. |
rgrover1 | 3:b852bf8d6fad | 148 | */ |
rgrover1 | 3:b852bf8d6fad | 149 | void updateHeartRate(uint16_t hrmCounter) { |
rgrover1 | 3:b852bf8d6fad | 150 | valueBytes.updateHeartRate(hrmCounter); |
rgrover1 | 6:715150f7f293 | 151 | ble.gattServer().write(hrmRate.getValueAttribute().getHandle(), valueBytes.getPointer(), valueBytes.getNumValueBytes()); |
rgrover1 | 3:b852bf8d6fad | 152 | } |
rgrover1 | 3:b852bf8d6fad | 153 | |
rgrover1 | 3:b852bf8d6fad | 154 | /** |
rgrover1 | 3:b852bf8d6fad | 155 | * This callback allows the HeartRateSecService to receive updates to the |
rgrover1 | 3:b852bf8d6fad | 156 | * controlPoint Characteristic. |
rgrover1 | 3:b852bf8d6fad | 157 | * |
rgrover1 | 3:b852bf8d6fad | 158 | * @param[in] params |
rgrover1 | 3:b852bf8d6fad | 159 | * Information about the characterisitc being updated. |
rgrover1 | 3:b852bf8d6fad | 160 | */ |
rgrover1 | 5:ed2cb43f3589 | 161 | virtual void onDataWritten(const GattWriteCallbackParams *params) { |
rgrover1 | 5:ed2cb43f3589 | 162 | if (params->handle == controlPoint.getValueAttribute().getHandle()) { |
rgrover1 | 3:b852bf8d6fad | 163 | /* Do something here if the new value is 1; else you can override this method by |
rgrover1 | 3:b852bf8d6fad | 164 | * extending this class. |
rgrover1 | 3:b852bf8d6fad | 165 | * @NOTE: if you are extending this class, be sure to also call |
rgrover1 | 3:b852bf8d6fad | 166 | * ble.onDataWritten(this, &ExtendedHRService::onDataWritten); in |
rgrover1 | 3:b852bf8d6fad | 167 | * your constructor. |
rgrover1 | 3:b852bf8d6fad | 168 | */ |
rgrover1 | 3:b852bf8d6fad | 169 | } |
rgrover1 | 3:b852bf8d6fad | 170 | } |
rgrover1 | 3:b852bf8d6fad | 171 | |
rgrover1 | 3:b852bf8d6fad | 172 | private: |
rgrover1 | 3:b852bf8d6fad | 173 | void setupService(void) { |
rgrover1 | 3:b852bf8d6fad | 174 | static bool serviceAdded = false; /* We should only ever need to add the heart rate service once. */ |
rgrover1 | 3:b852bf8d6fad | 175 | if (serviceAdded) { |
rgrover1 | 3:b852bf8d6fad | 176 | return; |
rgrover1 | 3:b852bf8d6fad | 177 | } |
rgrover1 | 3:b852bf8d6fad | 178 | |
rgrover1 | 5:ed2cb43f3589 | 179 | hrmRate.requireSecurity(SecurityManager::SECURITY_MODE_ENCRYPTION_WITH_MITM); |
rgrover1 | 3:b852bf8d6fad | 180 | |
rgrover1 | 3:b852bf8d6fad | 181 | GattCharacteristic *charTable[] = {&hrmRate, &hrmLocation, &controlPoint}; |
rgrover1 | 3:b852bf8d6fad | 182 | GattService hrmService(GattService::UUID_HEART_RATE_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *)); |
rgrover1 | 3:b852bf8d6fad | 183 | |
rgrover1 | 6:715150f7f293 | 184 | ble.gattServer().addService(hrmService); |
rgrover1 | 3:b852bf8d6fad | 185 | serviceAdded = true; |
rgrover1 | 3:b852bf8d6fad | 186 | |
rgrover1 | 6:715150f7f293 | 187 | ble.gattServer().onDataWritten(this, &HeartRateSecService::onDataWritten); |
rgrover1 | 3:b852bf8d6fad | 188 | } |
rgrover1 | 3:b852bf8d6fad | 189 | |
rgrover1 | 3:b852bf8d6fad | 190 | private: |
rgrover1 | 3:b852bf8d6fad | 191 | /* Private internal representation for the bytes used to work with the vaulue of the heart-rate characteristic. */ |
rgrover1 | 3:b852bf8d6fad | 192 | struct HeartRateValueBytes { |
rgrover1 | 3:b852bf8d6fad | 193 | static const unsigned MAX_VALUE_BYTES = 3; /* FLAGS + up to two bytes for heart-rate */ |
rgrover1 | 3:b852bf8d6fad | 194 | static const unsigned FLAGS_BYTE_INDEX = 0; |
rgrover1 | 3:b852bf8d6fad | 195 | |
rgrover1 | 3:b852bf8d6fad | 196 | static const unsigned VALUE_FORMAT_BITNUM = 0; |
rgrover1 | 3:b852bf8d6fad | 197 | static const uint8_t VALUE_FORMAT_FLAG = (1 << VALUE_FORMAT_BITNUM); |
rgrover1 | 3:b852bf8d6fad | 198 | |
rgrover1 | 3:b852bf8d6fad | 199 | HeartRateValueBytes(uint8_t hrmCounter) : valueBytes() { |
rgrover1 | 3:b852bf8d6fad | 200 | updateHeartRate(hrmCounter); |
rgrover1 | 3:b852bf8d6fad | 201 | } |
rgrover1 | 3:b852bf8d6fad | 202 | |
rgrover1 | 3:b852bf8d6fad | 203 | HeartRateValueBytes(uint16_t hrmCounter) : valueBytes() { |
rgrover1 | 3:b852bf8d6fad | 204 | updateHeartRate(hrmCounter); |
rgrover1 | 3:b852bf8d6fad | 205 | } |
rgrover1 | 3:b852bf8d6fad | 206 | |
rgrover1 | 3:b852bf8d6fad | 207 | void updateHeartRate(uint8_t hrmCounter) { |
rgrover1 | 3:b852bf8d6fad | 208 | valueBytes[FLAGS_BYTE_INDEX] &= ~VALUE_FORMAT_FLAG; |
rgrover1 | 3:b852bf8d6fad | 209 | valueBytes[FLAGS_BYTE_INDEX + 1] = hrmCounter; |
rgrover1 | 3:b852bf8d6fad | 210 | } |
rgrover1 | 3:b852bf8d6fad | 211 | |
rgrover1 | 3:b852bf8d6fad | 212 | void updateHeartRate(uint16_t hrmCounter) { |
rgrover1 | 3:b852bf8d6fad | 213 | valueBytes[FLAGS_BYTE_INDEX] |= VALUE_FORMAT_FLAG; |
rgrover1 | 3:b852bf8d6fad | 214 | valueBytes[FLAGS_BYTE_INDEX + 1] = (uint8_t)(hrmCounter & 0xFF); |
rgrover1 | 3:b852bf8d6fad | 215 | valueBytes[FLAGS_BYTE_INDEX + 2] = (uint8_t)(hrmCounter >> 8); |
rgrover1 | 3:b852bf8d6fad | 216 | } |
rgrover1 | 3:b852bf8d6fad | 217 | |
rgrover1 | 3:b852bf8d6fad | 218 | uint8_t *getPointer(void) { |
rgrover1 | 3:b852bf8d6fad | 219 | return valueBytes; |
rgrover1 | 3:b852bf8d6fad | 220 | } |
rgrover1 | 3:b852bf8d6fad | 221 | |
rgrover1 | 3:b852bf8d6fad | 222 | const uint8_t *getPointer(void) const { |
rgrover1 | 3:b852bf8d6fad | 223 | return valueBytes; |
rgrover1 | 3:b852bf8d6fad | 224 | } |
rgrover1 | 3:b852bf8d6fad | 225 | |
rgrover1 | 3:b852bf8d6fad | 226 | unsigned getNumValueBytes(void) const { |
rgrover1 | 3:b852bf8d6fad | 227 | return 1 + ((valueBytes[FLAGS_BYTE_INDEX] & VALUE_FORMAT_FLAG) ? sizeof(uint16_t) : sizeof(uint8_t)); |
rgrover1 | 3:b852bf8d6fad | 228 | } |
rgrover1 | 3:b852bf8d6fad | 229 | |
rgrover1 | 3:b852bf8d6fad | 230 | private: |
rgrover1 | 3:b852bf8d6fad | 231 | /* First byte = 8-bit values, no extra info, Second byte = uint8_t HRM value */ |
rgrover1 | 3:b852bf8d6fad | 232 | /* See --> https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml */ |
rgrover1 | 3:b852bf8d6fad | 233 | uint8_t valueBytes[MAX_VALUE_BYTES]; |
rgrover1 | 3:b852bf8d6fad | 234 | }; |
rgrover1 | 3:b852bf8d6fad | 235 | |
rgrover1 | 3:b852bf8d6fad | 236 | private: |
rgrover1 | 6:715150f7f293 | 237 | BLE &ble; |
rgrover1 | 3:b852bf8d6fad | 238 | |
rgrover1 | 3:b852bf8d6fad | 239 | HeartRateValueBytes valueBytes; |
rgrover1 | 3:b852bf8d6fad | 240 | uint8_t controlPointValue; |
rgrover1 | 3:b852bf8d6fad | 241 | |
rgrover1 | 3:b852bf8d6fad | 242 | GattCharacteristic hrmRate; |
rgrover1 | 3:b852bf8d6fad | 243 | ReadOnlyGattCharacteristic<uint8_t> hrmLocation; |
rgrover1 | 3:b852bf8d6fad | 244 | WriteOnlyGattCharacteristic<uint8_t> controlPoint; |
rgrover1 | 3:b852bf8d6fad | 245 | }; |
rgrover1 | 3:b852bf8d6fad | 246 | |
rgrover1 | 3:b852bf8d6fad | 247 | #endif /* #ifndef __BLE_HEART_RATE_SEC_SAMPLE_SERVICE_H__*/ |