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

Stuck on actionRegister #1

Closed
cbspakistan opened this issue Dec 12, 2017 · 8 comments
Closed

Stuck on actionRegister #1

cbspakistan opened this issue Dec 12, 2017 · 8 comments

Comments

@cbspakistan
Copy link

The code you provided did not work on Anviz W1.

12/12/2017 17:20:46 Debug actionRegister: Device ID - ffad05f38cbd0e28afea7ea4f8628e2e

It keeps hitting actionRegister, Please check above log,
Further, Cloud icon in device also has exclamatory mark.

@mjankowski85
Copy link

I have similar problem with w1, but get rid of "!" on my cloud. You need to check what your server is asked for, i used tcpflow for ubuntu for it. The problem on server with PHP7.0 is because mcrypt_encrypt function from Tools returns false for $sha1 key when its length is 8 - when its 24 exclamatory mark disappears, but i think it won't working this way too ;)

Another problem is that i'm getting "soap client bad request" error from w1's actionTransport. Request data is like this:
ns1:actionTransport
<serial_number>6�ihU2����a�|</serial_number>
H5BmzvcmtWMfkGbO9ya1Y0EwbkldbuZ3+VrljbbTEiT5WuWNttMSJPla5Y220xIkw+nwZ3H95M0=
</ns1:actionTransport>

I'm not even sure if there should be serial_number of w1 or token which i send during actionRegister :/
I saw somewhere an info that you have to change config's KEY value on prod environment, but don't know how to get KEY from my w1 yet...

@cbspakistan
Copy link
Author

So, did you get your W1 working on your cloud successfully?

@mjankowski85
Copy link

yep, but with php starting from 5.6+ you cant use mcrypt, because it gives an error
Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supported
So this api works on php 5.4 - 5.5 ;)

@mjankowski85

This comment was marked as outdated.

@cbspakistan
Copy link
Author

Which version would you recommend?

@cbspakistan
Copy link
Author

May I have your email address?

@mjankowski85
Copy link

mjankowski at x-one.com.pl

@cbspakistan
Copy link
Author

Thanks, Check your email inbox.

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