diff options
| author | JF <jf@codingfield.com> | 2020-04-25 13:52:00 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-04-25 13:52:00 (GMT) |
| commit | 032fad094c6411ad3ff4321ad61ceed95d7dc4ff (patch) | |
| tree | 53a9341ba2e93491e025ab54299ccd7241c504c6 /src/Components/Ble/NimbleController.h | |
| parent | 5fcb90a14951ec70a8ec41a656f6f58358b9986b (diff) | |
NimbleController : CTS & ANS are now working together (even if the code is not as good as I would like).
Diffstat (limited to 'src/Components/Ble/NimbleController.h')
| -rw-r--r-- | src/Components/Ble/NimbleController.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Components/Ble/NimbleController.h b/src/Components/Ble/NimbleController.h index c4eab52..7a7a94c 100644 --- a/src/Components/Ble/NimbleController.h +++ b/src/Components/Ble/NimbleController.h @@ -10,6 +10,7 @@ namespace Pinetime { namespace Controllers { class DateTime; class NimbleController { + public: NimbleController(Pinetime::System::SystemTask& systemTask, DateTime& dateTimeController, Pinetime::Controllers::NotificationManager& notificationManager); void Init(); @@ -17,6 +18,13 @@ namespace Pinetime { int OnGAPEvent(ble_gap_event *event); int OnDiscoveryEvent(uint16_t i, const ble_gatt_error *pError, const ble_gatt_svc *pSvc); + int OnCTSCharacteristicDiscoveryEvent(uint16_t connectionHandle, const ble_gatt_error *error, + const ble_gatt_chr *characteristic); + int OnANSCharacteristicDiscoveryEvent(uint16_t connectionHandle, const ble_gatt_error *error, + const ble_gatt_chr *characteristic); + int OnCurrentTimeReadResult(uint16_t connectionHandle, const ble_gatt_error *error, ble_gatt_attr *attribute); + int OnANSDescriptorDiscoveryEventCallback(uint16_t connectionHandle, const ble_gatt_error *error, + uint16_t characteristicValueHandle, const ble_gatt_dsc *descriptor); private: static constexpr char* deviceName = "Pinetime-JF"; Pinetime::System::SystemTask& systemTask; |
