Slackbot
07/06/2020, 8:42 AMNicolas Chaduc
07/06/2020, 8:45 AMSam Smallman
07/06/2020, 8:45 AMonServicesDiscovered
method I'm doing this:
val descriptor: BluetoothGattDescriptor = gatt.getService(BluetoothMultiverse.Service.dmx.uuid).getCharacteristic(BluetoothMultiverse.Characteristic.rdmUID.uuid).getDescriptor(UUID.fromString("00002902-0000-1000-8000-00805f9b34fb"))
descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE)
gatt.writeDescriptor(descriptor)
and then shortly after after that:
Log.i(tag, "Characteristic: RDM UID")
val success = gatt.setCharacteristicNotification(it, true)
Log.i(tag, "RDMUID Notify Success: $success")
I'm expecting the onCharacteristicChanged
callback to be called..00002902-0000-1000-8000-00805f9b34fb
is this client characteristic config that needs to be set... maybe? so thats why thats a random uuid, all the others are correct from the documentation of the device im trying to interface with..