unsubscribe method

Future<void> unsubscribe({
  1. Duration? timeout,
})

Unsubscribes from this characteristic.

Implementation

Future<void> unsubscribe({
  Duration? timeout,
}) {
  if (!isSupported) throw Exception('Operation not supported');
  return UniversalBle.unsubscribe(
    _characteristic._deviceId,
    _characteristic._serviceId,
    _characteristic.uuid,
    timeout: timeout,
  );
}