diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-07-04 13:28:17 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-08-18 12:00:13 +0200 |
| commit | 4fddf931147537b79bfaf0c8d6878958a6fc9965 (patch) | |
| tree | 1cf0796fb2af04c5abe15ee850b513c4c04dcb00 /src/components/ble/HeartRateService.h | |
| parent | 83922fb3de7e0aeaaa0a4de8904d26701b67abbd (diff) | |
Advertise HR service
Diffstat (limited to 'src/components/ble/HeartRateService.h')
| -rw-r--r-- | src/components/ble/HeartRateService.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/ble/HeartRateService.h b/src/components/ble/HeartRateService.h index 3f32fd09..ca8f10fb 100644 --- a/src/components/ble/HeartRateService.h +++ b/src/components/ble/HeartRateService.h @@ -21,14 +21,14 @@ namespace Pinetime { void SubscribeNotification(uint16_t attributeHandle); void UnsubscribeNotification(uint16_t attributeHandle); + static constexpr uint16_t heartRateServiceId {0x180D}; + static constexpr ble_uuid16_t heartRateServiceUuid {.u {.type = BLE_UUID_TYPE_16}, .value = heartRateServiceId}; + private: NimbleController& nimble; Controllers::HeartRateController& heartRateController; - static constexpr uint16_t heartRateServiceId {0x180D}; static constexpr uint16_t heartRateMeasurementId {0x2A37}; - static constexpr ble_uuid16_t heartRateServiceUuid {.u {.type = BLE_UUID_TYPE_16}, .value = heartRateServiceId}; - static constexpr ble_uuid16_t heartRateMeasurementUuid {.u {.type = BLE_UUID_TYPE_16}, .value = heartRateMeasurementId}; struct ble_gatt_chr_def characteristicDefinition[2]; |
