@@ -118,15 +118,15 @@ class LocalStudyProtocolManager implements StudyProtocolManager {
118118 // locationService);
119119
120120 // Define the online weather service and add it as a 'device'
121- WeatherService weatherService = WeatherService (apiKey: openWeatherApiKey);
122- protocol.addConnectedDevice (weatherService, phone);
121+ // WeatherService weatherService = WeatherService(apiKey: openWeatherApiKey);
122+ // protocol.addConnectedDevice(weatherService, phone);
123123
124- // Add a background task that collects weather every 5 minutes.
125- protocol.addTaskControl (
126- PeriodicTrigger (period: Duration (minutes: 5 )),
127- BackgroundTask (
128- measures: [Measure (type: ContextSamplingPackage .WEATHER )]),
129- weatherService);
124+ // // Add a background task that collects weather every 5 minutes.
125+ // protocol.addTaskControl(
126+ // PeriodicTrigger(period: Duration(minutes: 5)),
127+ // BackgroundTask(
128+ // measures: [Measure(type: ContextSamplingPackage.WEATHER)]),
129+ // weatherService);
130130
131131 // // Define the online air quality service and add it as a 'device'
132132 // AirQualityService airQualityService =
@@ -317,7 +317,7 @@ class LocalStudyProtocolManager implements StudyProtocolManager {
317317
318318 var c3 = CortriumDevice (
319319 name: 'Cortrium C3+' ,
320- identifier : 'ED:AD:D4:3D:3F:72' ,
320+ btleAddress : 'ED:AD:D4:3D:3F:72' ,
321321 );
322322
323323 protocol.addConnectedDevice (c3, phone);
@@ -329,6 +329,7 @@ class LocalStudyProtocolManager implements StudyProtocolManager {
329329 // Measure(type: CortriumSamplingPackage.BUTTON),
330330 Measure (type: CortriumSamplingPackage .BATTERY ),
331331 Measure (type: CortriumSamplingPackage .ACCELEROMETER ),
332+ Measure (type: CortriumSamplingPackage .HR ),
332333 ]),
333334 c3);
334335
@@ -460,28 +461,28 @@ class LocalStudyProtocolManager implements StudyProtocolManager {
460461 locationService);
461462
462463 // define the online weather service and add it to the father's phone
463- WeatherService weatherService = WeatherService (apiKey: openWeatherApiKey);
464- protocol.addConnectedDevice (weatherService, fatherPhone);
464+ // WeatherService weatherService = WeatherService(apiKey: openWeatherApiKey);
465+ // protocol.addConnectedDevice(weatherService, fatherPhone);
465466
466- // add a background task that collects weather every 30 minutes.
467- protocol.addTaskControl (
468- PeriodicTrigger (period: Duration (minutes: 30 )),
469- BackgroundTask ()
470- ..addMeasure (Measure (type: ContextSamplingPackage .WEATHER )),
471- weatherService);
467+ // // add a background task that collects weather every 30 minutes.
468+ // protocol.addTaskControl(
469+ // PeriodicTrigger(period: Duration(minutes: 30)),
470+ // BackgroundTask()
471+ // ..addMeasure(Measure(type: ContextSamplingPackage.WEATHER)),
472+ // weatherService);
472473
473- // define the online air quality service and add it to the mother's phone
474- AirQualityService airQualityService =
475- AirQualityService (apiKey: airQualityApiKey);
476- protocol.addConnectedDevice (airQualityService, motherPhone);
474+ // // define the online air quality service and add it to the mother's phone
475+ // AirQualityService airQualityService =
476+ // AirQualityService(apiKey: airQualityApiKey);
477+ // protocol.addConnectedDevice(airQualityService, motherPhone);
477478
478- // add a background task that air quality every 30 minutes.
479- protocol.addTaskControl (
480- PeriodicTrigger (period: Duration (minutes: 30 )),
481- BackgroundTask (measures: [
482- Measure (type: ContextSamplingPackage .AIR_QUALITY ),
483- ]),
484- airQualityService);
479+ // // add a background task that air quality every 30 minutes.
480+ // protocol.addTaskControl(
481+ // PeriodicTrigger(period: Duration(minutes: 30)),
482+ // BackgroundTask(measures: [
483+ // Measure(type: ContextSamplingPackage.AIR_QUALITY),
484+ // ]),
485+ // airQualityService);
485486
486487 // collect noise from the child's phone
487488 protocol.addTaskControl (
0 commit comments