diff options
author | JF <jf@codingfield.com> | 2020-05-02 14:16:57 +0200 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-05-02 14:16:57 +0200 |
commit | e20fdfa494ed8b1b6a62b71ca605a6a801e54e4e (patch) | |
tree | c1d0eef1ae68f37b0e2338198b4304ac74eea25f /src/Components/Ble/DfuService.h | |
parent | 87c6556ad049077ab14398637031ea029b321baf (diff) |
Add new screen that is displayed during the OTA transfert.
Diffstat (limited to 'src/Components/Ble/DfuService.h')
-rw-r--r-- | src/Components/Ble/DfuService.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Components/Ble/DfuService.h b/src/Components/Ble/DfuService.h index 1b13c00d..7077bf02 100644 --- a/src/Components/Ble/DfuService.h +++ b/src/Components/Ble/DfuService.h @@ -5,14 +5,21 @@ #include <host/ble_gap.h> namespace Pinetime { + namespace System { + class SystemTask; + } namespace Controllers { + class Ble; class DfuService { public: - DfuService(); + DfuService(Pinetime::System::SystemTask& systemTask, Pinetime::Controllers::Ble& bleController); void Init(); int OnServiceData(uint16_t connectionHandle, uint16_t attributeHandle, ble_gatt_access_ctxt *context); private: + Pinetime::System::SystemTask& systemTask; + Pinetime::Controllers::Ble& bleController; + static constexpr uint16_t dfuServiceId {0x1530}; static constexpr uint16_t packetCharacteristicId {0x1532}; static constexpr uint16_t controlPointCharacteristicId {0x1531}; |