Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-20144

FIWARE.Question.Tech.Publish MQTT message in fiware via MQTT Paho library.

    Details

      Description

      Created question in FIWARE Q/A platform on 17-10-2022 at 19:10
      Please, ANSWER this question AT https://stackoverflow.com/questions/74102343/publish-mqtt-message-in-fiware-via-mqtt-paho-library

      Question:
      Publish MQTT message in fiware via MQTT Paho library

      Description:
      I am working on this Fiware flow:

      I have used efrecon/mqtt-client as MQTT client based on mosquitto_pub so that the data can be consumed from Grafana.
      docker run -it --rm --name mqtt-publisher efrecon/mqtt-client pub -h 172.31.85.246 -p 31624 -m "AGV_Th|25" -t "/ul/5jggokgpepnvsb2uv4s40d59ov/agv001/attrs"

      In the following example, a key-value pair is sent to populate a persistence with Crate DB and then consumed with Grafana.

      I am testing with a new python mqtt-paho based client without achieving the same result as with the mosquitto_pub based docker client. For instance:
      import paho.mqtt.client as mqtt
      client = mqtt.Client()
      client.connect("172.31.85.246", 31624)
      client.publish("/ul/5jggokgpepnvsb2uv4s40d59ov/agv001/attrs","

      {\"agv_th\":65}

      ")

      Any ideas?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-20 05:32|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-20 05:32|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-19 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-19 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-18 05:31|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-18 05:31|CREATED monitor | # answers= 1, accepted answer= True

          People

          • Assignee:
            Unassigned
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: