getSet_Query_time_data function
获取 设置日期时间/查询时间 的数据
Implementation
Future<List<int>> getSet_Query_time_data(DateTime? time) async {
// 0xFE 0x10 LEN SNO YY MM DD HH MM SS checksum
// 指令
int cmd = 0x10;
// 获取SNO
final List<int> snoList = await getSNOList();
// 获取时间 当传过去的时间不为空的时候,是设置锁的时间
// List<int> timeList = wxxGetNowTime();
// 当传过去的时间为空的时候,是查询锁的时间
List<int> timeList = [];
if (time != null) {
timeList = time2List(time);
}
//有效数据
List<int> subData = [...snoList, ...timeList];
return tempEncrypt(cmd, subData);
}