summaryrefslogtreecommitdiff
path: root/src/components/ble/NimbleController.h
diff options
context:
space:
mode:
authorThe King <27705324+jlukanc1@users.noreply.github.com>2021-01-24 21:01:14 (GMT)
committerGitHub <noreply@github.com>2021-01-24 21:01:14 (GMT)
commit8c3df5f0211e0cc31de90039a73fe48b9a9aafe0 (patch)
tree88fc0671a629b27793a418df76f543c7913b644a /src/components/ble/NimbleController.h
parent51c8cadcb78bdbe9013f5aace629c96ed3dfd06f (diff)
parent80838d1e42e83b50188d6237d16c81cfa27781a6 (diff)
Merge branch 'develop' into upstream-dev
Diffstat (limited to 'src/components/ble/NimbleController.h')
-rw-r--r--src/components/ble/NimbleController.h8
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;