Package-level declarations
Types
Link copied to clipboard
Abstraction over the BLE link used to send DFU commands and data.
Link copied to clipboard
class EspOtaTransport(peripheral: Peripheral, config: DfuTransportConfig.EspOta, commandTimeout: Duration) : DfuTransport
Espressif ESP-IDF OTA transport.
Link copied to clipboard
Link copied to clipboard
class L2capDfuTransport(peripheral: Peripheral, channel: L2capChannel, commandTimeout: Duration) : DfuTransport
Link copied to clipboard
SMP (Simple Management Protocol) transport for MCUboot DFU.
Functions
Link copied to clipboard
fun controlPointNotifications(peripheral: Peripheral, controlPoint: Characteristic): Flow<ByteArray>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Send a command where the device is expected to disconnect or reboot before responding (e.g. reset commands).
Link copied to clipboard
suspend fun sendCommandViaGatt(peripheral: Peripheral, controlPoint: Characteristic, notifications: Flow<ByteArray>, data: ByteArray, timeout: Duration): ByteArray