diff options
author | JF <jf@codingfield.com> | 2020-05-01 21:58:31 +0200 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-05-01 21:58:31 +0200 |
commit | 87c6556ad049077ab14398637031ea029b321baf (patch) | |
tree | 55fbc74c2ea30425a5def6deab44433581445958 /src/Components/Ble/NimbleController.h | |
parent | 56b527925ce64bc0a9ef4b0ca51a1648b6400e04 (diff) |
Defer the discovery of services using the system task.
Diffstat (limited to 'src/Components/Ble/NimbleController.h')
-rw-r--r-- | src/Components/Ble/NimbleController.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Components/Ble/NimbleController.h b/src/Components/Ble/NimbleController.h index 25f583f2..945d3329 100644 --- a/src/Components/Ble/NimbleController.h +++ b/src/Components/Ble/NimbleController.h @@ -26,6 +26,8 @@ namespace Pinetime { 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); + + void StartDiscovery(); private: static constexpr char* deviceName = "Pinetime-JF"; Pinetime::System::SystemTask& systemTask; |