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

FIWARE.Question.Tech.FIWARE - IoT Agent - Data for Orion.

    Details

      Description

      Created question in FIWARE Q/A platform on 12-07-2021 at 17:07
      Please, ANSWER this question AT https://stackoverflow.com/questions/68351709/fiware-iot-agent-data-for-orion

      Question:
      FIWARE - IoT Agent - Data for Orion

      Description:
      I have installed FIWARE on my machine (Ubuntu 18.04) and I am currently trying to work with the IoT Agent, using the HTTPBindings.js (my data is sent via LoRaWAN and I've changed the parseData function in order to use my own data "protocol" [id=1&temp=12&humidity=10], which brings me here to ask 2 questions for someone who is more experienced and can help me with:
      function parseData(req, res, next) {
      let data;
      let error;
      let payload;
      let obj;
      try {
      let newPayload = new Buffer.from(payload, "base64").toString("ascii");
      var ps = newPayload.split("&").reduce((accum, x) => {
      const kv = x.split("=");
      return { ...accum, ...

      { [kv[0]]: kv[1] }

      };
      }, {});
      data = ulParser.parse(newPayload.replace(/&/g, "|").replace(/=/g, "|"));

      } catch (e)

      { error = e; }

      if (error)

      { next(error); }

      else

      { req.ulPayload = data; config.getLogger().debug(context, 'Parsed data: [%j]', data); next(); }

      }

      After changing this function, I can't get the data to be updated in the orion/v2/entities.. Would someone explain me how does this work?

      How can I add a proxy to usenter code heree in the Wirecloud? I've created it using the FIWARE servers, but testing on my own, I do not have this.

      Thank you in advance.

        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 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] FIWARE - IoT Agent - Data for Orion FIWARE.Question.Tech.FIWARE - IoT Agent - Data for Orion.
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: