formatA6Data static method
Format A6 data, remove header, trailer and checksum
Implementation
static List<int> formatA6Data(List<int> data) {
List<int> returnData = [];
int startIndex = 2;
//有包头, 长度
int two = data[1] & 0xFF;
if (data.length >= (two + startIndex)) {
returnData = data.sublist(startIndex, two + startIndex);
}
return returnData;
}