ProvisioningBearer

Abstract provisioning bearer for communicating with unprovisioned devices.

Two concrete implementations exist:

  • PB-ADV: Provisioning over the Advertising Bearer

  • PB-GATT: Provisioning over the GATT Bearer (via Provisioning Service UUID 1827)

Properties

Link copied to clipboard
abstract val incomingPdus: Flow<ByteArray>

Incoming provisioning PDUs from the unprovisioned device.

Link copied to clipboard
abstract val isOpen: Boolean

Whether the bearer is currently open for communication.

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract suspend fun open()

Open the bearer and establish communication.

Link copied to clipboard
abstract suspend fun send(pdu: ByteArray)

Send a provisioning PDU to the unprovisioned device.