Hi,
I am currently trying to connect my Lora device through RAK7258 gateway to Flespi by using the MQTT bridge . From the RAK platform , I have to set the MQTT by following Flespi MQTT broker connection details. I look at the transaction on the Flespi session and by using the MQTT Board I can see the message from the topic setting on the RAK.
My problem is, I want to send the data from your Flespi to our hosting by using HTTP. I try to create a channel by using the MQTT protocol but after the channel created, the session will be intermittent. May I know why?

    Hi AishahOmar ,
    Please be sure you're using different client_id for your channel and MQTT bridge

      kial so how the channel can read the data if the client_id different?

        • Edited

        The client_id string is identifying one MQTT broker client, but you have two of them - your MQTT bridge and a channel, created in the flespi platform.
        Your private topics and messages space is guaranteed by the flespi token providing access to the same (yours) flespi account.
        So in ideal world you have to use different client_id strings (required) and different tokens with proper ACL configured (optional but highly recommended)

        Hi, I have done create a channel and stream by following your guide. no intermittent on my session. but my intention now is how to know my channel and stream function correctly cause no data on my database gets from the stream.

          • Edited

          AishahOmar Toolbox is the best way to analyze if your flespi instance is working properly.
          If you see messages and success logs in channel Toolbox - channel works correctly
          If you see success logs in stream Toolbox (like this) - stream works correctly
          Moreover, you can set up stream working through proxy channel to see raw traffic initiated by the stream.
          If you have no success in any of these steps - you can write to flespi chat (it is located on top right corner of your https://flespi.io panel)

            4 months later

            Hi, hello currently I have the same issue, rak guys tell is necessary use a Lorawan node like RAK811 to publish data, beacause the gateway is not desingned to ake this work, but if you could publish only using the gateway, would you tell me how you did it?

            Regards

              CristhoperCerpas
              I helped some of our users to connect their custom MQTT devices to flespi gateway. In very general way the steps are the following:

              1. set up MQTT connection from your device to flespi MQTT broker. The mandatory fields here: host, port, client_id (must be unique), username (flespi Token).
                Check this step in https://flespi.io panel -> MQTT -> Sessions - find a session with appropriate cleint ID.
              2. set up Topic to publish data from your device. (and data format if possible).
                Check this step at MQTT Board - add a subscriber for the topic you've specified to see the real message coming to flespi MQTT broker.
              3. The last step is to create MQTT channel. Its configuration greatly depends on the data format pushed by your device. The best case if device pushes JSON. Anyway this to variable step to make some general advises. If you reached here - contact flespi team in chat (located at top right corner of flespi panel) and we will help you.
              Write a Reply...