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

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          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: