diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-13 18:53:16 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-13 18:53:16 (GMT) |
| commit | 531c1172a2357d53b214aaf7b29efee47d9b32e5 (patch) | |
| tree | e9c008f13900e1d3c63332a3bbc305754f8ae35c /src/components/ble/NimbleController.h | |
| parent | 27fa6bba08766831fe143fe5ca13767bedcd9072 (diff) | |
Revert "Sans notification (notification manager retained as it seems to be used by the dfu manager)"ultraredux2
This reverts commit 569e6fea41c13f33ad1374bb80ca489aaf4a7037.
Diffstat (limited to 'src/components/ble/NimbleController.h')
| -rw-r--r-- | src/components/ble/NimbleController.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/ble/NimbleController.h b/src/components/ble/NimbleController.h index 2069d8c..c9d6420 100644 --- a/src/components/ble/NimbleController.h +++ b/src/components/ble/NimbleController.h @@ -7,11 +7,14 @@ #include <host/ble_gap.h> #undef max #undef min +#include "components/ble/AlertNotificationClient.h" +#include "components/ble/AlertNotificationService.h" #include "components/ble/BatteryInformationService.h" #include "components/ble/CurrentTimeClient.h" #include "components/ble/CurrentTimeService.h" #include "components/ble/DeviceInformationService.h" #include "components/ble/DfuService.h" +#include "components/ble/ImmediateAlertService.h" #include "components/ble/ServiceDiscovery.h" namespace Pinetime { @@ -42,6 +45,10 @@ namespace Pinetime { int OnGAPEvent(ble_gap_event* event); void StartDiscovery(); + Pinetime::Controllers::AlertNotificationService& alertService() { + return anService; + }; + uint16_t connHandle(); void NotifyBatteryLevel(uint8_t level); @@ -60,8 +67,11 @@ namespace Pinetime { DeviceInformationService deviceInformationService; CurrentTimeClient currentTimeClient; + AlertNotificationService anService; + AlertNotificationClient alertNotificationClient; CurrentTimeService currentTimeService; BatteryInformationService batteryInformationService; + ImmediateAlertService immediateAlertService; ServiceDiscovery serviceDiscovery; uint8_t addrType; |
