down method

Future<bool> down({
  1. int timeout = 5,
})

Implementation

Future<bool> down({int timeout = 5}) async {
  bool ret = await _command
      .writeCgi("decoder_control.cgi?command=2&onestep=1&", timeout: timeout);
  if (ret) {
    CommandResult result =
        await _command.waitCommandResult((int cmd, Uint8List data) {
      return cmd == 24601;
    }, timeout);
    return result.isSuccess;
  }
  return false;
}