connectAllConnectableDevices method

Future<void> connectAllConnectableDevices()

Connect all connectable devices used by the probes in this background task executor.

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());
}