Skip to content

Commit

Permalink
Make fake-v35-device.py mimic an "unvalid" error message on unknown c…
Browse files Browse the repository at this point in the history
…ommand
  • Loading branch information
uzlonewolf committed Nov 16, 2023
1 parent 6f29f12 commit 736b980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/fake-v35-device.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
client.sendall( data )
else:
print('unhandled command', m.cmd)
msg = tinytuya.TuyaMessage(seqno, 16, 0, b'JSON GOES HERE', 0, True, tinytuya.PREFIX_6699_VALUE, True)
msg = tinytuya.TuyaMessage(seqno, 16, 0, b'json obj data unvalid', 0, True, tinytuya.PREFIX_6699_VALUE, True)
seqno += 1
data = tinytuya.pack_message(msg, hmac_key=tmp_key)
client.sendall( data )
Expand Down

0 comments on commit 736b980

Please sign in to comment.