sendSMPPayload

suspend fun sendSMPPayload(device: BluetoothDevice, oobPayload: ByteArray): Boolean

Sends an oob command to the device. If device has DFU service available, uses SMP group 64. Otherwise, uses OOB characteristic.

Return

true if command was sent successfully

Parameters

device

The device to send to

oobPayload

The OOB payload to send if DFU service is not available