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

connexion timeout #20

Open
benavern opened this issue Nov 2, 2019 · 1 comment
Open

connexion timeout #20

benavern opened this issue Nov 2, 2019 · 1 comment

Comments

@benavern
Copy link

benavern commented Nov 2, 2019

Hi!
I'm using your lib to develop a desktop app.

It works pretty well with electron, but I have an issue when adding an indicator (tray icon) and can't figure out why when I call the same function as on the renderer process, I get a "connexion timeout" instead of the light reacting to it.

Here is my code, the indicator (tray icon) is in the feat/indicator branch.

Maybe you could help me to find where the problem is ?

Thank you !

@benavern
Copy link
Author

benavern commented Nov 2, 2019

To reproduce what I'm saying, follow these steps:

  • clone my repo and checkout feat/indicator
  • npm i
  • npm run dev
  • wait 3 seconds untill the react app is ready and "ctrl + r" in the reveloper tool
  • go in "discovered" tab
  • add your light to favorites
  • click "reload" button on the top right corner.
  • in the system tray, an indicator should be there and your newly favorite light added. Click on it
  • you should have "switch On" and "switch Of" buttons here are those that don't work.

I am calling the same function as when I click on the switch button in the app but it does not work as expected

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