disableNotifications

fun disableNotifications(serviceUuid: UUID, characteristicUuid: UUID)

Disables notifications for a characteristic.

This method stops the BLE device from sending notifications for the specified characteristic. Any previously registered callback for this characteristic will no longer receive updates.

Internally, this writes to the Client Characteristic Configuration Descriptor (CCCD) with CLIENT_CHARACTERISTIC_CONFIG_UUID to disable notifications on the remote device.

Parameters

serviceUuid

The UUID of the GATT service containing the characteristic.

characteristicUuid

The UUID of the characteristic to disable notifications for.

See also