startProfile method

  1. @override
Future<void> startProfile(
  1. BleProfile profile
)
override

Implementation

@override
Future<void> startProfile(BleProfile profile) async {
  if (activeProfile != null) throw StateError('Already running');
  activeProfile = profile;
  values.addEntries(
    profile.fields.map((f) => MapEntry(f.uuid, List.of(f.initialBytes))),
  );
}