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

Error: 'Reveiced unexpected Data' #3

Closed
cajoma opened this issue Dec 29, 2020 · 4 comments
Closed

Error: 'Reveiced unexpected Data' #3

cajoma opened this issue Dec 29, 2020 · 4 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@cajoma
Copy link

cajoma commented Dec 29, 2020

Dear dehsgr.

I found in Fiddler the following Timestamp and Token (sign) - Thanks for your hint!!
image

If I filled out the data (s. beyond:) It comes up with an Error: 'Reveiced unexpected Data'
image
image

My Code is:
image

image

If I watch the network with Fiddler, it looks like there comes no protocol into the network.
What is my mistake?

Thanks for your support.

@dehsgr dehsgr self-assigned this Dec 29, 2020
@dehsgr dehsgr added help wanted Extra attention is needed question Further information is requested labels Dec 29, 2020
@dehsgr
Copy link
Owner

dehsgr commented Dec 29, 2020

Ouch. My fault! I corrected my answer in issue #2. You should use request body instead of response body for getting correct information. ;-)

I would like you to confirm it is now working for you, before I close this request.

@cajoma
Copy link
Author

cajoma commented Dec 29, 2020

Unfortunately it is still the same behavior:

image
image

@dehsgr dehsgr added the bug Something isn't working label Dec 29, 2020
dehsgr added a commit that referenced this issue Dec 29, 2020
There seems to be an encryption issue without using sniffed message id.
dehsgr added a commit that referenced this issue Dec 29, 2020
This is to reflect changes fixing issue #3.
@dehsgr
Copy link
Owner

dehsgr commented Dec 29, 2020

I published an update to v1.0.2. Please check with that update and fill in new sniffed data including message id there. Thank you again for your feedback!

@peterchs
Copy link

I also had issues but had ended up just hacking smartplug-control.js until it worked, copying from the sniffed ios payload. Presumably it was the messageId that I'd fixed. Meant to raise an issue but didnt get round to it..

Anyway updated to 1.0.2, filled in the message id in config and its now working without the hacks.

Thanks for this & thanks for the module.

@dehsgr dehsgr closed this as completed Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants