provision

fun provision(attentionTimer: UByte): Flow<ProvisioningState>

Starts the provisioning process with the given attention timer.

Return

Flow of provisioning states that could be used to observe and continue/cancel the provisioning process.

Parameters

attentionTimer

Attention timer value in seconds.

Throws

If the device does not support the required algorithms.

If the device does not have any unicast address available.

If the device has an invalid unicast address.

If the device has sent an invalid PDU.

If the device has sent an invalid public key.

If the device has sent an invalid OOB value.

If the device has sent an error.

If the provisioning process failed.

If the bearer is closed.