rxbluetooth

com.polidea.rxandroidble2.exceptions.BleCharacteristicNotFoundException: Characteristic not found with UUID

ⅰ亾dé卋堺 提交于 2020-01-06 08:29:20
问题 I'm trying to read an unsolicited data stream from my Bluetooth device. The data should appear as a byte array. Unfortunately, the UUID I'm supplying doesn't seem to be the correct one. What could be going wrong? val stringDeviceUUID = rxBleDevice.bluetoothDevice.uuids[0].toString() val charUUID = UUID.fromString(stringDeviceUUID) println("$stringDeviceUUID = $charUUID?") /* If device if it is not already connected... */ if (rxBleDevice.connectionState != RxBleConnection.RxBleConnectionState

com.polidea.rxandroidble2.exceptions.BleCharacteristicNotFoundException: Characteristic not found with UUID

两盒软妹~` 提交于 2020-01-06 08:29:06
问题 I'm trying to read an unsolicited data stream from my Bluetooth device. The data should appear as a byte array. Unfortunately, the UUID I'm supplying doesn't seem to be the correct one. What could be going wrong? val stringDeviceUUID = rxBleDevice.bluetoothDevice.uuids[0].toString() val charUUID = UUID.fromString(stringDeviceUUID) println("$stringDeviceUUID = $charUUID?") /* If device if it is not already connected... */ if (rxBleDevice.connectionState != RxBleConnection.RxBleConnectionState