Code does not work after stop button
-
We are testing the Flic hub with a couple of buttons and...maybe we are getting this wrong but....
The thing is, we have coded a little mqtt script so that when a flic button is pressed, a mqtt signal is sent via a broker stored on another of our machines.
The misunderstanding comes after the fact that, in the Flic online editor all works as expected, when we push the green "play" button, but after that, we understand (or so we thought), the code should be pushed and keep running in the Flic Hub....but that is not the case.
After the "stop" button, the code just does not work. It seems like we are missing something or misunderstanding the functionality of this device.
Can anyone provide help?
-
@eddieAnd_1 you can close the browser window and the program will continue to run. It's just the text editor and control panel.
-
@Emil thanks for your answer. In this case, we do not really understand the utility or the usability of the hub, if, to be able to keep the code running, we need to have a browser window open somewhere all the time and the code running, is that the only way of working of the device, it can't work in, so to say, "stand alone mode"?
-
This post is deleted! -
@eddieAnd_1 well each hub module runs as a javascript process. If you stop the process, the code does not run anymore... So keep it running.