BluetoothError

data class BluetoothError(code: Int) : IotDeviceController.Status

There was an error reported by the mobile device bluetooth radio. That's a direct result from android.bluetooth.le.ScanCallback.onScanFailed. The IotDeviceController will keep trying to scan thou and clear the error if scans are being received.

Constructors

BluetoothError
Link copied to clipboard
fun BluetoothError(code: Int)

Functions

toString
Link copied to clipboard
open override fun toString(): String

Properties

code
Link copied to clipboard
val code: Int

Error code from the bluetooth scanner. One of android.bluetooth.le.ScanCallback.SCAN_FAILED_* values. Android also notoriously sends an undocumented code 133. That means a bluetooth driver internal error, possible solutions vary a lot around devices and manufacturers, actions like: