unRegisterDevice method

Future<StudyDeploymentStatus> unRegisterDevice(
  1. {required String deviceRoleName}
)

Unregister a device for this deployment at the CARP server.

  • deviceRoleName - the role name of the device, e.g. phone.

Returns the updated study deployment status if the registration is successful. Throws a CarpServiceException if not.

Implementation

Future<StudyDeploymentStatus> unRegisterDevice(
        {required String deviceRoleName}) async =>
    _status = StudyDeploymentStatus.fromJson(
        await _rpc(UnregisterDevice(studyDeploymentId, deviceRoleName)));