diff options
| author | Adam Pigg <adam@piggz.co.uk> | 2020-04-28 10:21:35 (GMT) |
|---|---|---|
| committer | Adam Pigg <adam@piggz.co.uk> | 2020-05-05 19:58:15 (GMT) |
| commit | b760b3f98ca786bbe0d586e30fed2847525b0ae4 (patch) | |
| tree | a6a5b52ac753245fe4c39b3956c54d4f71a63fb6 /src/Components/Ble/NimbleController.cpp | |
| parent | 332b51464a75e40f2e306c50092735891acfe406 (diff) | |
Add a simple service to allow setting the time from a controlling
application
Diffstat (limited to 'src/Components/Ble/NimbleController.cpp')
| -rw-r--r-- | src/Components/Ble/NimbleController.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp index 02f9918..77bab5d 100644 --- a/src/Components/Ble/NimbleController.cpp +++ b/src/Components/Ble/NimbleController.cpp @@ -74,6 +74,9 @@ void NimbleController::Init() { deviceInformationService.Init(); currentTimeClient.Init(); + pinetimeService.Init(); + pinetimeService.setDateTimeController(&dateTimeController); + int res; res = ble_hs_util_ensure_addr(0); res = ble_hs_id_infer_auto(0, &addrType); |
