getQUERY_SET_BASIC_TIME_data function

Future<List<int>> getQUERY_SET_BASIC_TIME_data()

获取 查询/设置基准时间 的数据

Implementation

Future<List<int>> getQUERY_SET_BASIC_TIME_data() async {
  // 设置时:0xFE 0x1F LEN SNO YY MM DD HH mm SS checksum
  // 查询时:0xFE 0x1F LEN SNO checksum
  // 指令
  int cmd = 0x1F;
  // 获取SNO
  final List<int> snoList = await getSNOList();
  // 获取基准时间
  // final List<int> timeList = [0x25, 0x11, 0x29, 0x22, 0x45, 0x31];
  // 获取基准时间 查询时为空
  final List<int> timeList = [];

  //有效数据
  List<int> subData = [...snoList, ...timeList];

  return tempEncrypt(cmd, subData);
}