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

FIWARE.Question.Tech.IoT.IDAS.FIWARE IoT Agent: how to send the location attribut to the contextBroker Entity?

    Details

      Description

      Created question in FIWARE Q/A platform on 24-11-2015 at 17:11
      Please, ANSWER this question AT http://stackoverflow.com/questions/33899459/fiware-iot-agent-how-to-send-the-location-attribut-to-the-contextbroker-entity

      Question:
      FIWARE IoT Agent: how to send the location attribut to the contextBroker Entity?

      Description:
      I want to add location information to my entity in the contextBroker using the MQTT IoT Agent.
      I followed this link to do so https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/modules.md

      My problem is that the attribut "location" was sent as String to the contextBroker not as "coords"

      Here is what I sent to the MQTT IoT agent:

      int qos = 1;
      boolean retain = false;

      String topic = "myKey/sensorId/location";
      String payload= "12.5/14.5";

      this.dataService.publish(topic, position.getBytes(), qos, retain, 2);

      I assume that the location attribut in the contextBroker will have the type "coords", something like that:

      {
      "name":"position",
      "type":"coords",
      "value":"33.000,-3.234234",
      "metadatas":[

      { "name":"location", "type":"string", "value":"WGS84" }

      ]
      }

      But what I got in the contextBroker is this:

      "location" : {
      "value" : "12.5/14.5",
      "type" : "string",
      "md" : [

      { "name" : "TimeInstant", "type" : "ISO8601", "value" : "2015-11-24T16:26:09.530507" }

      ],
      "creDate" : 1448382369,
      "modDate" : 1448382369
      }

      What have I missed? Thanks in advance for your help!

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        18h 1 Backlog Manager 25/Nov/15 12:04 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 25/Nov/15 3:04 PM
        Answered Answered Closed Closed
        8h 59m 1 Backlog Manager 26/Nov/15 12:04 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler IDAS [ 10884 ]
        HD-Chapter IoT [ 10839 ]
        mev Manuel Escriche made changes -
        Summary FIWARE.Question.Tech.FIWARE IoT Agent: how to send the location attribut to the contextBroker Entity? FIWARE.Question.Tech.IoT.IDAS.FIWARE IoT Agent: how to send the location attribut to the contextBroker Entity?
        mev Manuel Escriche made changes -
        Summary [fiware-stackoverflow] FIWARE IoT Agent: how to send the location attribut to the contextBroker Entity? FIWARE.Question.Tech.FIWARE IoT Agent: how to send the location attribut to the contextBroker Entity?
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-11-26 00:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-11-26 00:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-11-25 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-11-25 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-11-25 12:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-11-25 12:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        mev Manuel Escriche made changes -
        Assignee Carlos Ralli Ucendo [ ralli ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-11-24 18:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-11-24 18:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            ralli Carlos Ralli Ucendo
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: