doudz / zigate

python lib for zigate
MIT License
47 stars 22 forks source link

struct.error: unpack requires a buffer of 9 bytes #208

Open montjoie opened 3 years ago

montjoie commented 3 years ago

when refreshing devices I got: DEBUG:zigate:Raw packet received, b'\x01\x87\x02\x12\x02\x10\x02\x1aO\xf0\x02\x11\x02\x11\x02\x122\xef\xe7\x02\x18\x02\x10\x02\x10\x03' DEBUG:zigate:Dispatch ZIGATE_PACKET_RECEIVED DEBUG:zigate:Received response 0x8702: b'f001010232efe70800' ERROR:zigate:Error decoding response 0x8702: b'f001010232efe70800' ERROR:zigate:Traceback (most recent call last): File "/zigate/zigate/core.py", line 589, in decode_data response = RESPONSES.get(msg_type, Response)(value, lqi) File "/zigate/zigate/responses.py", line 36, in init self.decode() File "/zigate/zigate/responses.py", line 1251, in decode self.data['dst_address'], self.data['sequence'] = struct.unpack('!QB', additional) struct.error: unpack requires a buffer of 9 bytes