notifyCharacteristic

fun notifyCharacteristic(peripheral: BluetoothPeripheral, characteristic: BluetoothCharacteristic, enable: Boolean)

Enables or disables notifications for a characteristic.

Parameters

peripheral

The target device.

characteristic

The characteristic to monitor.

enable

True to enable, false to disable notifications.