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

[fiware-stackoverflow] Fiware IoTAgent and Context Broker

    Details

      Description

      Created question in FIWARE Q/A platform on 02-06-2016 at 13:06
      Please, ANSWER this question AT https://stackoverflow.com/questions/37591168/fiware-iotagent-and-context-broker

      Question:
      Fiware IoTAgent and Context Broker

      Description:
      I'm following this example to create a simple scenario where I register a new device into the IoT Agent and it forwards it to the Context Broker. Then I want to check if the created device exists in the Context Broker, and I can seem to find it.
      These are the steps I'm doing:
      1. using Postman I'm sending a post request to the IoT Agent:
      url: http://eidas5.lab.fi-ware.org:5371/iot/devices

      headers:
      APIKEY:4jggokgpepnvsb2uv4s40d59ov
      Fiware-Service:openiot
      Fiware-ServicePath:/
      Content-Type:application/json
      Accept:application/json

      body:
      {
      "devices": [
      { "device_id": "DEV_ID",
      "entity_name": "ENTITY_ID",
      "entity_type": "thing",
      "protocol": "PDI-IoTA-UltraLight",
      "timezone": "Europe/Madrid",
      "attributes": [

      { "object_id": "t", "name": "temperature", "type": "int" }

      ],
      "static_attributes": [

      { "name": "att_name", "type": "string", "value": "value" }

      ]
      }
      ]
      }

      Then I confirm that the device is registered with a GET request to the url http://eidas5.lab.fi-ware.org:5371/iot/devices/DEV_ID

      request headers:
      APIKEY:4jggokgpepnvsb2uv4s40d59ov
      Fiware-Service:openiot
      Fiware-ServicePath:/
      Content-Type:application/json
      Accept:application/json

      everything seems ok so far, now I want to check where this device is in the context broker:

      According to the docs:

      Devices will be represented as NGSI entities in the ContextBroker at 130.206.80.40:1026 (within the FIWARE service-path "OpenIoT").

      So with a GET request I should be able to see the new device,but I can't. I even tryed using the fiware-servicepath and fiware-service headers as above, and I can't find it.
      Any advice on this?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:14|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:14|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:09|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:09|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:09|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:09|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

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

            Dates

            • Created:
              Updated:
              Resolved: