Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: FIWARE-TECH-HELP
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","
")
Any ideas?
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
HD-Enabler | Unknown [ 10910 ] | |
HD-Chapter | Unknown [ 10845 ] | |
HD-Node | Unknown [ 10852 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Summary | [fiware-stackoverflow] Publish MQTT message in fiware via MQTT Paho library | FIWARE.Question.Tech.Publish MQTT message in fiware via MQTT Paho library. |
HD-Enabler | Unknown [ 10910 ] | |
HD-Chapter | Unknown [ 10845 ] | |
HD-Node | Unknown [ 10852 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
1d | 1 | Backlog Manager | 19/Oct/22 7:31 AM | |||||
|
1d | 1 | Backlog Manager | 20/Oct/22 7:32 AM |
2022-10-18 05:31|CREATED monitor | # answers= 1, accepted answer= True