SecureDfuTransport
Kable-based transport for the Nordic Secure DFU (Secure DFU over BLE) protocol.
Usage:
triggerButtonlessDfu — connect to the device in normal mode and trigger reboot into DFU mode.
connectToDfuMode — scan for the device in DFU mode and establish the DFU GATT session.
transferInitPacket / transferFirmware — send .dat then .bin.
abort — send ABORT to the device before closing (on cancellation or error).
close — tear down the connection.
Constructors
Properties
True once connected if the bootloader can only transfer in small (≤20-byte) blocks — i.e. it did not negotiate a larger ATT MTU. Used to surface a "slow bootloader" advisory to the user. Valid after connectToDfuMode.
Functions
Scans for the device in DFU mode (address or address+1) and establishes the GATT connection, enabling notifications on the Control Point.
Sends the DFU init packet (.dat file). The device verifies this against the bootloader's security requirements before accepting firmware.
Connects to the device running normal firmware and writes to the Buttonless DFU characteristic so the bootloader takes over. The device disconnects and reboots.