diff options
author | JF002 <JF002@users.noreply.github.com> | 2020-05-11 18:24:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 18:24:55 +0200 |
commit | c55dd06f1a1eba05229a064085a3d84acd14187c (patch) | |
tree | 4649a582a9238a7dba9e0b5e54c40b03dc9d3d92 /src/Components/Ble/NimbleController.cpp | |
parent | 332b51464a75e40f2e306c50092735891acfe406 (diff) | |
parent | 7e3ac35710aac47aec42a8bcbd5e362d16acad3d (diff) |
Merge pull request #27 from piggz/pinetime-service
Basic time setting and notification service
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
-rw-r--r-- | src/Components/Ble/NimbleController.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp index 02f99180..826d255b 100644 --- a/src/Components/Ble/NimbleController.cpp +++ b/src/Components/Ble/NimbleController.cpp @@ -30,7 +30,9 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask, dateTimeController{dateTimeController}, notificationManager{notificationManager}, currentTimeClient{dateTimeController}, - alertNotificationClient{systemTask, notificationManager} { + alertNotificationClient{systemTask, notificationManager}, + anService{systemTask, notificationManager}, + currentTimeService{dateTimeController} { } @@ -74,6 +76,10 @@ void NimbleController::Init() { deviceInformationService.Init(); currentTimeClient.Init(); + currentTimeService.Init(); + + anService.Init(); + int res; res = ble_hs_util_ensure_addr(0); res = ble_hs_id_infer_auto(0, &addrType); |