mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 13:26:10 +02:00
Update ahoy.py decode cmd 129 as error response
This commit is contained in:
parent
86715ac116
commit
ec18712583
1 changed files with 4 additions and 0 deletions
|
@ -162,6 +162,10 @@ def on_receive(p):
|
|||
d['wday2_Wh'] = uk5
|
||||
d['uk2'] = uk2
|
||||
|
||||
elif cmd==129:
|
||||
name = 'error'
|
||||
print('Command error')
|
||||
|
||||
elif cmd==131:
|
||||
name = 'statedata'
|
||||
uk1, uk2, uk3, uk4, uk5, uk6 = struct.unpack('>HHHHHH', p[10:22])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue