configure method

  1. @mustCallSuper
Future<DeviceRegistration> configure({
  1. required DeploymentService deploymentService,
  2. required DeviceDataCollectorFactory deviceController,
  3. required String? deviceId,
})

Configure this ClientManager by specifying:

  • deviceId - register this client device in study deployments
  • deploymentService - where to get study deployments
  • deviceController that handles devices connected to this client

Implementation

@mustCallSuper
Future<DeviceRegistration> configure({
  required DeploymentService deploymentService,
  required DeviceDataCollectorFactory deviceController,
  required String? deviceId,
}) async {
  this.deploymentService = deploymentService;
  this.deviceController = deviceController;
  return registration = DeviceRegistration(deviceId);
}