restart method

  1. @nonVirtual
void restart()

Restart sampling of the measures using this device.

This entails that all measures in the study protocol using this device's type is restarted. This method is useful after the device is connected.

Implementation

@nonVirtual
void restart() {
  info('$runtimeType - restarting sampling...');

  for (var executor in executors) {
    executor.restart();
    if (executor.state == ExecutorState.resumed) {
      executor.resume();
    }
  }
}