my version with changed conversion between duration units
Fork of BLE_API by
DFUService Class Reference
Device Firmware Update Service. More...
|typedef void(*||ResetPrepare_t )(void)|
|Signature for the handover callback. |
|DFUService (BLE &_ble, ResetPrepare_t _handoverCallback=NULL)|
|Adds Device Firmware Update service to an existing ble object. |
|uint16_t||getControlHandle (void) const|
|get the handle for the value attribute of the control characteristic. |
|virtual void||onDataWritten (const GattWriteCallbackParams *params)|
|This callback allows the DFU service to receive the initial trigger to handover control to the bootloader; but first the application is given a chance to clean up. |
|Writing to the control characteristic triggers the handover to dfu- bootloader. |
|The packet characteristic in this service doesn't do anything meaningful, but is only a placeholder to mimic the corresponding characteristic in the actual DFU service implemented by the bootloader. |
|static ResetPrepare_t||handoverCallback = NULL|
|application specific handover callback. |
Device Firmware Update Service.
Member Typedef Documentation
|typedef void(* ResetPrepare_t)(void)|
Constructor & Destructor Documentation
Member Function Documentation
|virtual void onDataWritten||(||const GattWriteCallbackParams *||params )||
|WriteOnlyArrayGattCharacteristic<uint8_t, SIZEOF_CONTROL_BYTES> controlPoint
The packet characteristic in this service doesn't do anything meaningful, but is only a placeholder to mimic the corresponding characteristic in the actual DFU service implemented by the bootloader.
Without this, some FOTA clients might get confused as service definitions change after handing control over to the bootloader.
Generated on Thu Mar 21 2019 17:55:54 by 1.7.2