secsgem
secsgem copied to clipboard
How to get data in the HSMSPacket?
Hello, I have to send S14F1 to get some data, and then it responds back at S14F2, where I got the data as:
b'\x01\x02\x01\x01\x01\x02A\t003000107\x01\x01\x01\x02A\x07MapDataA\tsome data\x01\x02\xa5\x01\x00\x01\x00'
from packet.data, but I don't know how to get 'some data'. Do you have an example of how to get the value I need?
def _on_s14f02(self, handler, packet):
data = packet.data