diff options
| author | JF <jf@codingfield.com> | 2021-01-23 16:41:29 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2021-01-23 16:41:29 (GMT) |
| commit | 76ab14fa5f7979dd764b449396dc5835a286ec6d (patch) | |
| tree | 846b39f9c412854c57fd15cc37e920b7affa28c5 /src/components/ble/NimbleController.h | |
| parent | 1d940af924bac5728a4d494f780e298e5b67b707 (diff) | |
| parent | 84b509ed9536e081f370d2fd7c519c9ed6acfea4 (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/components/ble/NimbleController.h')
| -rw-r--r-- | src/components/ble/NimbleController.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/ble/NimbleController.h b/src/components/ble/NimbleController.h index 914f11e..a109800 100644 --- a/src/components/ble/NimbleController.h +++ b/src/components/ble/NimbleController.h @@ -16,7 +16,9 @@ #include "DfuService.h" #include "ImmediateAlertService.h" #include "MusicService.h" +#include "NavigationService.h" #include "ServiceDiscovery.h" +#include "HeartRateService.h" namespace Pinetime { namespace Drivers { @@ -37,7 +39,8 @@ namespace Pinetime { public: NimbleController(Pinetime::System::SystemTask& systemTask, Pinetime::Controllers::Ble& bleController, DateTime& dateTimeController, Pinetime::Controllers::NotificationManager& notificationManager, - Controllers::Battery& batteryController, Pinetime::Drivers::SpiNorFlash& spiNorFlash); + Controllers::Battery& batteryController, Pinetime::Drivers::SpiNorFlash& spiNorFlash, + Controllers::HeartRateController& heartRateController); void Init(); void StartAdvertising(); int OnGAPEvent(ble_gap_event *event); @@ -54,6 +57,7 @@ namespace Pinetime { void StartDiscovery(); Pinetime::Controllers::MusicService& music() {return musicService;}; + Pinetime::Controllers::NavigationService& navigation() {return navService;}; uint16_t connHandle(); @@ -72,8 +76,10 @@ namespace Pinetime { AlertNotificationClient alertNotificationClient; CurrentTimeService currentTimeService; MusicService musicService; + NavigationService navService; BatteryInformationService batteryInformationService; ImmediateAlertService immediateAlertService; + HeartRateService heartRateService; uint8_t addrType; // 1 = Random, 0 = PUBLIC uint16_t connectionHandle = 0; |
