stop method

Future<void> stop()

Stops advertising and releases native resources. Can be started again.

Implementation

Future<void> stop() => _enqueue(() async {
  if (_state == BleServerState.stopped) return;
  _transition(BleServerState.stopping);
  await _cleanup();
  _transition(BleServerState.stopped);
});