enableCharacteristicNotify method

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

Tries to enable 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> enableCharacteristicNotify(
    {required String serviceUuid, required String charUuid}) async {
  return await _servicesFound[serviceUuid]
          ?.getCharacteristic(uuid: charUuid)
          ?.setNotifyValue(true) ??
      false;
}