-
Notifications
You must be signed in to change notification settings - Fork 21
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
Possible to get the Preshared Key? #11
Comments
Hi @Joey-1970, As far as I can see it isn't possible to get the old Preshared Key for a given Username. You should just create a new one. This isn't a limitation from IKEA but from COAP. As far as checking if a Preshared Key is still valid is also not really easy with the coap-client. The example command would be something like this: If the key is invalid the following should happen:
I hope this answers your question. |
Woops I made one mistake in my previous comment. I was using the wrong IP. The output should be something like this:
Note the: |
Hi Glenn, Thank you very much for your suggestion. I will try it. I write a module for a software called IP-Symcon (https://github.com/Joey-1970/IPS2Tradfri). The other question that keeps me busy is, how is the best way to know, when there are some changes maybe by remote or (another) app. Currently I have to poll the state in short intervals. Joachim |
Yeah thats the drawback of the COAP protocol. It isn't a real time protocol so polling will always be the solution for these problems. Even the IKEA app isn't realtime and is using a combination of polling + a refresh icon. |
Hello Glenn, thank you again, so I must polling - in my eyes not a very good way, but there is mayby in this moment no other way. I try your suggestion to verified if the key is still valid, but it take nearly one minute to do it. Is there a other idea? Joachim |
You should be able to control the break operation by setting the |
@Joey-1970, |
Hello Glenn,
many thanks for your very good documentation and the examples!
Is it possible to get the Preshared Key for a given Username or to control if the Preshared Key for the given Username is still guilty?
Joachim
The text was updated successfully, but these errors were encountered: