summaryrefslogtreecommitdiff
path: root/src/Components/Ble/NimbleController.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-09-27 18:59:06 (GMT)
committerJF <jf@codingfield.com>2020-09-27 18:59:06 (GMT)
commitf3728c41bb311f3838dc9c10a2157a16196b4420 (patch)
tree71df3ce7cd9ba620bdc982c48b823335addf5510 /src/Components/Ble/NimbleController.cpp
parentefd0c9eff7000c71825221d3094e7bb709465fc2 (diff)
Add Immediate Alert Service, needed by the "Find Me" profile from BLE spec.
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
-rw-r--r--src/Components/Ble/NimbleController.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp
index a8add0d..b13f9ce 100644
--- a/src/Components/Ble/NimbleController.cpp
+++ b/src/Components/Ble/NimbleController.cpp
@@ -39,7 +39,8 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask,
alertNotificationClient{systemTask, notificationManager},
currentTimeService{dateTimeController},
musicService{systemTask},
- batteryInformationService{batteryController} {
+ batteryInformationService{batteryController},
+ immediateAlertService{systemTask, notificationManager} {
}
@@ -88,6 +89,7 @@ void NimbleController::Init() {
anService.Init();
dfuService.Init();
batteryInformationService.Init();
+ immediateAlertService.Init();
int res;
res = ble_hs_util_ensure_addr(0);
ASSERT(res == 0);