MatKlucznyk / Qsys

Qsys library for S#P and SIMPL
MIT License
53 stars 18 forks source link

Connecting with Username/Password #8

Closed steven7673 closed 2 years ago

steven7673 commented 2 years ago

To make it work in simpl sharp Pro with a Username and Password, I had to change line 384 of QsysCore to
if (returnString.Contains("{\"jsonrpc\":\"2.0\",\"result\":true,\"id\":\"crestron\"}"))

If ''='' is used instead of contains, it connects but does not go passed that line

MatKlucznyk commented 2 years ago

I wasnt able to re-create this issue. Was it tested on a live core or emulator? What version of designer was used?

During my test using designer v9.4.0, in emulator mode, login was successful.

steven7673 commented 2 years ago

It was on live core, with version 9.4, I did not test in emulation mode.

Did you create your user in Q-Sys Administrator?

With Debug set to debug(2), I could see the response "{\"jsonrpc\":\"2.0\",\"result\":true,\"id\":\"crestron\"}" in console But it did not go past this, basically not triggering your 5 second timer for your init method.

Got it working by changing it to if (returnString.Contains("{\"jsonrpc\":\"2.0\",\"result\":true,\"id\":\"crestron\"}"))

Let me know if you find something else.

Thanks

De : Mat Klucznyk @.> Envoyé : 23 avril 2022 07:52 À : MatKlucznyk/Qsys @.> Cc : Steven Gauthier @.>; Author @.> Objet : Re: [MatKlucznyk/Qsys] Connecting with Username/Password (Issue #8)

I wasnt able to re-create this issue. Was it tested on a live core or emulator? What version of designer was used?

During my test using designer v9.4.0, in emulator mode, login was successful.

— Reply to this email directly, view it on GitHubhttps://github.com/MatKlucznyk/Qsys/issues/8#issuecomment-1107458838, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYHTNIEVP5TKVKR22SRVK3DVGPP4HANCNFSM5UAFWWJQ. You are receiving this because you authored the thread.Message ID: @.**@.>>