apidocs / com.nimmsta.core.android.bluetooth / DeviceBluetoothService / setCharacteristicNotification

setCharacteristicNotification

fun setCharacteristicNotification(characteristic: BluetoothGattCharacteristic, enabled: Boolean, changeDescriptor: Boolean = true): Task<Unit>

Enables or disables notification on a give characteristic.

Parameters

characteristic - Characteristic to act on.

enabled - If true, enable notification. False otherwise.

changeDescriptor - if true also changes descriptor