Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received data from device not parsed #174

Open
mrmaximas opened this issue Jul 30, 2024 · 0 comments
Open

Received data from device not parsed #174

mrmaximas opened this issue Jul 30, 2024 · 0 comments

Comments

@mrmaximas
Copy link

mrmaximas commented Jul 30, 2024

I'm trying to read data from wi-fi plug through cli:

DEBUG=* tuya-cli get --ip 192.168.1.87 --id 57220562c4dd571bb1b5 --key 4c6f90110106ff65 --protocol-version 3.3

  TuyAPI IP and ID are already both resolved. +0ms
  TuyAPI Connecting to 192.168.1.87... +1ms
  TuyAPI Socket connected. +73ms
  TuyAPI GET Payload: +1ms
  TuyAPI {
  TuyAPI   gwId: '57220562c4dd571bb1b5',
  TuyAPI   devId: '57220562c4dd571bb1b5',
  TuyAPI   t: '1722319878',
  TuyAPI   dps: {},
  TuyAPI   uid: '57220562c4dd571bb1b5'
  TuyAPI } +0ms
  TuyAPI Received data: 000055aa000000010000000a0000002c0000000151fd7b2f37a97d173bda104764cadbdfd2f29047fbf0e0e6e0a509f12e39388534297ad30000aa55 +219ms
  TuyAPI Parsed: +3ms
  TuyAPI {
  TuyAPI   payload: 'Q�{/7�}\x17;�\x10Gd�����G�����\t�.98�',
  TuyAPI   leftover: false,
  TuyAPI   commandByte: 10,
  TuyAPI   sequenceN: 1
  TuyAPI } +0ms
  TuyAPI Received DATA packet +1ms
  TuyAPI data: 10 : "Q�{/7�}\u0017;�\u0010Gd�����G�����\t�.98�" +1ms
  TuyAPI Disconnect +0ms
undefined
  TuyAPI Socket closed: 192.168.1.87 +2ms

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant