addStudy method
Adds study
this study runtime by specifying its study
and
deviceRegistration
.
deviceRegistration
is the device configuration for the device this study
runtime runs on, identified by Study.deviceRoleName in the study deployment
with Study.studyDeploymentId.
Call tryDeployment to subsequently deploy the study.
Implementation
Future<void> addStudy(
Study study,
TRegistration deviceRegistration,
) async {
_study = study;
study.status = StudyStatus.DeploymentNotStarted;
_deviceRegistration = deviceRegistration;
}