[ https://jira.fiware.org/browse/HELP-19931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Fox updated HELP-19931: ----------------------------- Status: In Progress (was: Open) > [fiware-stackoverflow] FIWARE: IotAgent-json over MQTT > ------------------------------------------------------ > > Key: HELP-19931 > URL: https://jira.fiware.org/browse/HELP-19931 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Jason Fox > Labels: fiware, fiware-orion, json, mqtt > > Created question in FIWARE Q/A platform on 10-08-2022 at 12:08 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/73306361/fiware-iotagent-json-over-mqtt > +Question:+ > FIWARE: IotAgent-json over MQTT > +Description:+ > I'm working on connecting sensors to a FIWARE system. > The sensor can report the monitoring data with MQTT in json payload. > With a public mqtt broker(hivemq), I can get the monitoring data payload as below: > { > "src":"shellyplus1pm-7c87ce64d540", > "dst":"shellyplus1pm-7c87ce64d540/events", > "method":"NotifyStatus", > "params":{ > "ts":1659606613.35, > "switch:0":{ > "id":0, > "apower":38.04 > } > } > }. > my questions are: > (1) the sensor can only publish data on topic DeviceId/events/rpc, but if I use FIWARE IotAgent-json, the IotAgent-json expects subscribing data on topic /json/{{api-key}}/{{device-id}}/attrs (according https://github.com/yanpengwuIoT/tutorials.IoT-over-MQTT), how can I let the IotAgent-json subscribe data on topic DeviceId/events/rpc, which is sensor firmware defined and can't be changed. > (2) the sensor publishs monitoring payload as a nested multi-level json object as showed above, but the IotAgent-json can only support a single level json object (like '{"h": 70, "t": 15}' as described in https://github.com/telefonicaid/iotagent-json/blob/master/docs/usermanual.md), how can I parse the multi-level json object in IotAgent-json? > Any comment, sample or documentation for this are very appreciated! Thank you very much. -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy