enableNotifications

fun enableNotifications(serviceUuid: UUID, characteristicUuid: UUID, callback: (ByteArray) -> Unit)

Enables notifications for a characteristic and registers a callback for received values.

Delegates to BleConnection.enableNotifications.

Parameters

serviceUuid

The UUID of the GATT service containing the characteristic.

characteristicUuid

The UUID of the characteristic to enable notifications for.

callback

The callback function invoked with the ByteArray value each time a notification is received.

See also