diff options
author | petter <39340152+petterhs@users.noreply.github.com> | 2021-01-08 14:21:52 +0100 |
---|---|---|
committer | petter <39340152+petterhs@users.noreply.github.com> | 2021-01-21 23:15:34 +0100 |
commit | 2d90571f0d9b86d7d7fbf414bbadd5092143c670 (patch) | |
tree | ebc3eeda93d42ffddda8c63c916ce1749cc93238 /src/components/ble/AlertNotificationService.h | |
parent | 10ba20876f37c8e18307dfbc8d06d70bb94d5fae (diff) |
change Notification Event UUID
Diffstat (limited to 'src/components/ble/AlertNotificationService.h')
-rw-r--r-- | src/components/ble/AlertNotificationService.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/ble/AlertNotificationService.h b/src/components/ble/AlertNotificationService.h index 558cdf54..7c99d3de 100644 --- a/src/components/ble/AlertNotificationService.h +++ b/src/components/ble/AlertNotificationService.h @@ -7,6 +7,9 @@ #undef max #undef min +//c7e50000-78fc-48fe-8e23-433b3a1942d1 +#define NOTIFICATION_EVENT_SERVICE_UUID_BASE {0xd1, 0x42, 0x19, 0x3a, 0x3b, 0x43, 0x23, 0x8e, 0xfe, 0x48, 0xfc, 0x78, 0x00, 0x00, 0xe5, 0xc7} + namespace Pinetime { namespace System { @@ -45,7 +48,6 @@ namespace Pinetime { static constexpr uint16_t ansId {0x1811}; static constexpr uint16_t ansCharId {0x2a46}; - static constexpr uint16_t ansEventCharId = {0x2a47}; static constexpr ble_uuid16_t ansUuid { .u { .type = BLE_UUID_TYPE_16 }, @@ -57,9 +59,9 @@ namespace Pinetime { .value = ansCharId }; - static constexpr ble_uuid16_t ansEventUuid { - .u { .type = BLE_UUID_TYPE_16 }, - .value = ansEventCharId + static constexpr ble_uuid128_t notificationEventUuid { + .u { .type = BLE_UUID_TYPE_128 }, + .value = NOTIFICATION_EVENT_SERVICE_UUID_BASE }; struct ble_gatt_chr_def characteristicDefinition[3]; |