GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    During the installation of the App, this should generate a random number

    Scheduled Pinned Locked Moved
    Comments & Feedback
    2
    3
    331
    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.
    • S
      Sato
      last edited by

      Hello kl3m3n,

      I mentioned this subject some time ago and would like to return to it to see if I can explain it in a way that makes sense.

      Besides that it is foreseen, that by sending the name of the IoT's that are registered in the Gui-O App, following the @init, it would be important that during the installation of the App, it should generate a random number, it doesn't need to have more than 4 digits which would be associated with that App installation. Whenever the App be installed on another cell phone, a new random number would always be generated. This number should also be sent together with, for example, "@init + Iot name + App installation number".
      Only in this way it will be possible to manage the access permission later on the Mqtt Broker.
      As it is important, please think if and how you can do this and when.

      For the situation of working with Firebase, this need is the same.
      I hope I explained it well

      Best regards

      K 1 Reply Last reply Reply Quote 0
      • K
        kl3m3n @Sato
        last edited by

        @sato As I've mentioned, you should not use the generated number / uuid, since it is not retained if the user re-installs the application. This has nothing to do with MQTT protocol as this would be included at the payload level (MQTT is data-agnostic, i.e., you can send anything you like in the payload field).

        You should use username and password to control your users. HiveMQ (I do not work for them 🙂 ) has a free plan, where you can freely add or remove users. See:
        https://www.hivemq.com/mqtt-cloud-broker/

        I hope I was clear.

        BR,
        kl3m3n

        S 1 Reply Last reply Reply Quote 0
        • S
          Sato @kl3m3n
          last edited by

          Hi @kl3m3n,

          I will leave it for later when I can experience a practical example.
          If justified, I will return to the subject.

          Thank you
          Best regards

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