diff options
| author | JF002 <JF002@users.noreply.github.com> | 2020-07-26 15:58:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-26 15:58:57 +0200 |
| commit | 4f51d429a57342a16cd3d250a2b8387a8101c6ba (patch) | |
| tree | 90a388959c721ce8afd481f3f5ed47125b5aaf59 /src/Components/Ble/NimbleController.h | |
| parent | c96a53e1a8d203e18ccda24b3754037fad12a6ca (diff) | |
| parent | 29b5caf895766ccca523faed2d3f88798ee571f4 (diff) | |
Merge branch 'develop' into patch-2
Diffstat (limited to 'src/Components/Ble/NimbleController.h')
| -rw-r--r-- | src/Components/Ble/NimbleController.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Components/Ble/NimbleController.h b/src/Components/Ble/NimbleController.h index cf50d78d..dff93c87 100644 --- a/src/Components/Ble/NimbleController.h +++ b/src/Components/Ble/NimbleController.h @@ -7,6 +7,7 @@ #include "CurrentTimeClient.h" #include "DfuService.h" #include "CurrentTimeService.h" +#include "MusicService.h" #include <host/ble_gap.h> namespace Pinetime { @@ -15,6 +16,7 @@ namespace Pinetime { } namespace Controllers { class DateTime; + class NimbleController { public: @@ -35,6 +37,11 @@ namespace Pinetime { uint16_t characteristicValueHandle, const ble_gatt_dsc *descriptor); void StartDiscovery(); + + Pinetime::Controllers::MusicService& music() {return musicService;}; + + uint16_t connHandle(); + private: static constexpr char* deviceName = "Pinetime-JF"; Pinetime::System::SystemTask& systemTask; @@ -49,9 +56,10 @@ namespace Pinetime { AlertNotificationService anService; AlertNotificationClient alertNotificationClient; CurrentTimeService currentTimeService; + MusicService musicService; uint8_t addrType; // 1 = Random, 0 = PUBLIC - uint16_t connectionHandle; + uint16_t connectionHandle = 0; ble_uuid128_t dfuServiceUuid { .u { .type = BLE_UUID_TYPE_128}, |
