getBingPhoneData function
获取 绑定手机指令 的数据
Implementation
Future<List<int>> getBingPhoneData(String qrCode) async {
// List<int> qrCodeList = str2list('202205170026');
// List<int> qrCodeList = str2list('000000000000');
if (qrCode.length != 12) {
print('qrcode的长度不是12,请重新输入');
return [];
}
List<int> qrCodeList = str2list(qrCode);
// String imei = await getImei();
// List<int> imeiList = str2list(imei);
List<int> imeiList = await getImeiList();
List<int> arr = [
0xfe,
0x00,
qrCodeList.length + imeiList.length,
...qrCodeList,
...imeiList,
// 0xc4
];
arr = [...arr, getChecksum(arr)];
return arr;
}