Closed benji-bou closed 2 years ago
Could post the logcat of below?
override fun onServicesDiscovered(gatt: BluetoothGatt, status: Int) {
Log.v(TAG, "onServicesDiscovered ${gatt.device.address} $status")
if (status != BluetoothGatt.GATT_SUCCESS) return
gatt.services?.forEach { service ->
Log.v(TAG, "Service " + service.uuid)
service.characteristics.forEach { characteristic ->
Log.v(TAG, " Characteristic ${characteristic.uuid}")
characteristic.descriptors.forEach {
Log.v(TAG, " Descriptor ${it.uuid}")
}
}
}
sendMessage(messageConnector, mapOf(
"deviceId" to gatt.device.address,
"ServiceState" to "discovered",
"services" to gatt.services.map { it.uuid.toString() }
))
}
Probably the TestQuickBlue.NOTIFY_CHARACTERISTICS
doesn't have a private val DESC__CLIENT_CHAR_CONFIGURATION = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb")
Thx for the response. It was indeed a mis spelling CharacteristicID
Hello,
Thank you for this package! When using on Android, the
QuickBlue.setNotifiable
function , it throws a java error:The responsible code is:
Do you have an idea of the problem? Best