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

FIWARE.Question.Tech.FIWARE: IotAgent-json over MQTT.

    Details

      Description

      Created question in FIWARE Q/A platform on 10-08-2022 at 12:08
      Please, ANSWER this question AT 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.

        Activity

        backlogmanager Backlog Manager created issue -
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        fla Fernando Lopez made changes -
        Assignee Jason Fox [ jason.fox ]
        jason.fox Jason Fox made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        jason.fox Jason Fox made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] FIWARE: IotAgent-json over MQTT FIWARE.Question.Tech.FIWARE: IotAgent-json over MQTT.
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]

          People

          • Assignee:
            jason.fox Jason Fox
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: