lch 8 months ago
parent 2ad2ef5aa5
commit 3852701178

@ -1321,8 +1321,7 @@ namespace BatCharging.Service.DataRlt
if (data != null && data.Length > 0) if (data != null && data.Length > 0)
{ {
CMD1501 = new CMD1501(); CMD1501 = new CMD1501();
CMD1501.value01 = ByteUtils.DToUInt16(data, 8);
CMD1501.value02 = ByteUtils.DToUInt16(data, 10);
CMD1501.value03 = Encoding.ASCII.GetString(data, 12, 32); CMD1501.value03 = Encoding.ASCII.GetString(data, 12, 32);
CMD1501.value04 = Encoding.ASCII.GetString(data, 44, 128); CMD1501.value04 = Encoding.ASCII.GetString(data, 44, 128);
} }

Loading…
Cancel
Save