stopRecordLineFileDown method

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

Implementation

Future<bool> stopRecordLineFileDown({int timeout = 5}) async {
  bool ret = await writeCgi("record_fastplay.cgi?ctrl=0&", timeout: timeout);
  if (ret) {
    CommandResult result = await waitCommandResult((int cmd, Uint8List data) {
      return cmd == 24837;
    }, timeout);
    if (result.isSuccess) {
      Map data = result.getMap();
      return data["result"] == "0";
    }
  }
  return false;
}