disableCharacteristicNotify method

  1. @override
Future<bool> disableCharacteristicNotify({
  1. required String serviceUuid,
  2. required String charUuid,
})
override

Tries to disable the specified characteristic notify. @param serviceUuid UUID of the service the characteristic belongs to. @param charUuid UUID of the characteristic to enable notify for.

Implementation

@override
Future<bool> disableCharacteristicNotify(
    {required String serviceUuid, required String charUuid}) async {
  return await _servicesFound[serviceUuid]
          ?.getCharacteristic(uuid: charUuid)
          ?.setNotifyValue(false) ??
      false;
}