connectAllConnectableDevices method

Future<void> connectAllConnectableDevices()

Starts connecting the devices of all probes.

Skips devices already connecting. Does not wait for the connections.

Implementation

Future<void> connectAllConnectableDevices() async {
  debug('$runtimeType - Trying to connect to all connectable devices for this background executor.');

  probes
      .where((probe) => !probe.deviceManager.isConnecting)
      .forEach((probe) async => await probe.deviceManager.connect());
}