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 19-10-2022 at 20:10
Please, ANSWER this question AT https://stackoverflow.com/questions/74131256/send-a-json-as-payload-via-mqtt-to-fiware
Question:
Send a JSON as payload via MQTT to Fiware
Description:
I am working on this Fiware flow:
I can successfully send MQTT messages to the iotagent-ul using the mqtt paho library. E.g. a single type message through the publish library:
publish.single("/ul/5jggokgpepnvsb2uv4s40d59ov/agv001/attrs", "AGV_Th|25|AVG_X|0.35", hostname="172.31.85.246", port=31624)
However, I would need to send JSON payloads, is it possible to send this message format through iotagent-ul or would it be necessary to use another iot agent like iotagent-json as an interpreter for these messages?
2022-10-20 05:32|CREATED monitor | # answers= 0, accepted answer= False