waitForBonding

suspend fun waitForBonding(timeInMillis: Long = 2000)

Auxiliary function which waits for bonding. The bonding may be initiated in different scenarios e.g. after connected or when reading from characteristic which is protected.

This function is suppose to help waiting for bonding to be initiated in scenarios when this is expected.

Parameters

timeInMillis

Initial delay before bond state changes are started to be observed.