tryRegisterConnectedDevices method

Future<void> tryRegisterConnectedDevices()

Tries to register all connected devices which are available in this device's deviceRegistry as well as in the deploymentService.

The deploymentStatus lists the devices needed to be deployed on this device.

This is a convenient method for synchronizing the devices needed for a deployment and the available devices on this phone.

Implementation

Future<void> tryRegisterConnectedDevices() async {
  for (var deviceStatus in deploymentStatus.devicesStatus) {
    await tryRegisterConnectedDevice(deviceStatus.device);
  }
}