start method

Future<void> start()

Registers profile and starts advertising. Requires a stopped server.

Implementation

Future<void> start() {
  if (profile == null) {
    return Future.error(StateError('Supply a BleProfile or use startServer'));
  }
  return _enqueue(() => _start(profile!));
}