registerDevice method
Register the device with the specified deviceRoleName
for the study
deployment with studyDeploymentId
.
registration
is a matching configuration for the device with deviceRoleName
.
Returns null if studyDeploymentId
is not found.
Implementation
@override
Future<StudyDeploymentStatus> registerDevice(
String studyDeploymentId,
String deviceRoleName,
DeviceRegistration registration,
) async =>
StudyDeploymentStatus.fromJson(await _rpc(RegisterDevice(
studyDeploymentId,
deviceRoleName,
registration,
)));