summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpetter <39340152+petterhs@users.noreply.github.com>2021-01-21 23:36:17 +0100
committerpetter <39340152+petterhs@users.noreply.github.com>2021-01-21 23:36:17 +0100
commit6d76dbc9117693cc611ba106d696222580dbdc95 (patch)
tree7ec70f77af90922180de9d859748a6b0eea3ade2 /src
parent2d90571f0d9b86d7d7fbf414bbadd5092143c670 (diff)
change Notification Event base UUID
Diffstat (limited to 'src')
-rw-r--r--src/components/ble/AlertNotificationService.cpp2
-rw-r--r--src/components/ble/AlertNotificationService.h26
2 files changed, 14 insertions, 14 deletions
diff --git a/src/components/ble/AlertNotificationService.cpp b/src/components/ble/AlertNotificationService.cpp
index 14d58d51..88d2ea8a 100644
--- a/src/components/ble/AlertNotificationService.cpp
+++ b/src/components/ble/AlertNotificationService.cpp
@@ -79,7 +79,7 @@ int AlertNotificationService::OnAlert(uint16_t conn_handle, uint16_t attr_handle
Pinetime::System::SystemTask::Messages event = Pinetime::System::SystemTask::Messages::OnNewNotification;
switch(*category) {
- case (uint8_t) 0x05:
+ case (uint8_t) ANS_TYPE_NOTIFICATION_CALL:
notif.category = Pinetime::Controllers::NotificationManager::Categories::IncomingCall;
event = Pinetime::System::SystemTask::Messages::OnNewCall;
break;
diff --git a/src/components/ble/AlertNotificationService.h b/src/components/ble/AlertNotificationService.h
index 7c99d3de..17153681 100644
--- a/src/components/ble/AlertNotificationService.h
+++ b/src/components/ble/AlertNotificationService.h
@@ -7,8 +7,8 @@
#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}
+//00020000-78fc-48fe-8e23-433b3a1942d0
+#define NOTIFICATION_EVENT_SERVICE_UUID_BASE {0xd0, 0x42, 0x19, 0x3a, 0x3b, 0x43, 0x23, 0x8e, 0xfe, 0x48, 0xfc, 0x78, 0x00, 0x00, 0x02, 0x00}
namespace Pinetime {
@@ -34,17 +34,17 @@ namespace Pinetime {
private:
- static const char ALERT_UNKNOWN = 0x01;
- static const char ALERT_SIMPLE_ALERT = 0x02;
- static const char ALERT_EMAIL = 0x03;
- static const char ALERT_NEWS = 0x04;
- static const char ALERT_INCOMING_CALL = 0x05;
- static const char ALERT_MISSED_CALL = 0x06;
- static const char ALERT_SMS = 0x07;
- static const char ALERT_VOICE_MAIL = 0x08;
- static const char ALERT_SCHEDULE = 0x09;
- static const char ALERT_HIGH_PRIORITY_ALERT = 0x0a;
- static const char ALERT_INSTANT_MESSAGE = 0x0b;
+ static const char ANS_TYPE_SIMPLE_ALERT = 0x00;
+ static const char ANS_TYPE_EMAIL = 0x01;
+ static const char ANS_TYPE_NEWS = 0x02;
+ static const char ANS_TYPE_NOTIFICATION_CALL = 0x03;
+ static const char ANS_TYPE_MISSED_CALL = 0x04;
+ static const char ANS_TYPE_SMS_MMS = 0x05;
+ static const char ANS_TYPE_VOICE_MAIL = 0x06;
+ static const char ANS_TYPE_SCHEDULE = 0x07;
+ static const char ANS_TYPE_HIGH_PRIORITIZED_ALERT = 0x08;
+ static const char ANS_TYPE_INSTANT_MESSAGE = 0x09;
+ static const char ANS_TYPE_ALL_ALERTS = 0xff;
static constexpr uint16_t ansId {0x1811};
static constexpr uint16_t ansCharId {0x2a46};