Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Code does not work after stop button

    Developers
    2
    5
    479
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • eddieAnd_1
      eddieAnd_1 last edited by

      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?

      Emil 1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam @eddieAnd_1 last edited by

        @eddieAnd_1 you can close the browser window and the program will continue to run. It's just the text editor and control panel.

        1 Reply Last reply Reply Quote 0
        • eddieAnd_1
          eddieAnd_1 @Emil last edited by eddieAnd_1

          @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"?

          Emil 1 Reply Last reply Reply Quote 0
          • eddieAnd_1
            eddieAnd_1 last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Emil
              Emil FlicTeam @eddieAnd_1 last edited by

              @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.

              eddieAnd_1 1 Reply Last reply Reply Quote 0
              • First post
                Last post