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

[fiware-stackoverflow] Send commands to Context Broker using iotagent-ul

    Details

      Description

      Created question in FIWARE Q/A platform on 14-02-2017 at 18:02
      Please, ANSWER this question AT https://stackoverflow.com/questions/42231943/send-commands-to-context-broker-using-iotagent-ul

      Question:
      Send commands to Context Broker using iotagent-ul

      Description:
      I'm trying to send commands to the Orion Context Broker using iotagent-ul with HTTP protcol.
      Context Broker and IoT Agent are in different servers (actually IoTA is in running in my laptop).
      I've configured the necessary parameters in config.js file.

      My request is as follows:

      curl -L POST -H "Fiware-Service: myHome" -H "Fiware-ServicePath: /environment" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
      "devices": [
      {
      "device_id": "sensor01",
      "entity_name": "LivingRoomSensor",
      "entity_type": "multiSensor",
      "attributes": [

      { "object_id": "t", "name": "Temperature", "type": "celsius" }

      ,

      { "object_id": "l", "name": "Luminosity", "type": "lumens" }

      ]
      }
      ]
      }
      ' 'http://localhost:4061/iot/devices'

      It shows the following erros:

      In IoTA terminal:

      time=2017-02-14T15:06:14.832Z | lvl=ERROR | corr=88ed3729-6682-44ce-9b0a-28098e54c94e | trans=88ed3729-6682-44ce-9b0a-28098e54c94e | op=IoTAgentNGSI.DomainControl | srv=myHome | subsrv=/environment | msg=TypeError: Cannot read property 'findOne' of undefined | comp=IoTAgent

      In "cURL terminal":

      curl: (52) Empty reply from server

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 58m 1 Backlog Manager 22/May/17 6:04 PM
        In Progress In Progress Answered Answered
        2h 59m 1 Backlog Manager 22/May/17 9:04 PM
        Answered Answered Closed Closed
        6d 17h 42m 1 José Ignacio Carretero Guarde 29/May/17 2:47 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        jicg José Ignacio Carretero Guarde made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler IDAS [ 10884 ]
        Description
        Created question in FIWARE Q/A platform on 14-02-2017 at 18:02
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/42231943/send-commands-to-context-broker-using-iotagent-ul


        +Question:+
        Send commands to Context Broker using iotagent-ul

        +Description:+
        I'm trying to send commands to the Orion Context Broker using iotagent-ul with HTTP protcol.
        Context Broker and IoT Agent are in different servers (actually IoTA is in running in my laptop).
        I've configured the necessary parameters in config.js file.

        My request is as follows:

        curl -L POST -H "Fiware-Service: myHome" -H "Fiware-ServicePath: /environment" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
        "devices": [
            {
                "device_id": "sensor01",
                "entity_name": "LivingRoomSensor",
                "entity_type": "multiSensor",
                "attributes": [
                      { "object_id": "t", "name": "Temperature", "type": "celsius" },
                      { "object_id": "l", "name": "Luminosity", "type": "lumens" }
                ]
            }
        ]
        }
        ' 'http://localhost:4061/iot/devices'


        It shows the following erros:


        In IoTA terminal:


        time=2017-02-14T15:06:14.832Z | lvl=ERROR | corr=88ed3729-6682-44ce-9b0a-28098e54c94e | trans=88ed3729-6682-44ce-9b0a-28098e54c94e | op=IoTAgentNGSI.DomainControl | srv=myHome | subsrv=/environment | msg=TypeError: Cannot read property 'findOne' of undefined | comp=IoTAgent


        In "cURL terminal":


        curl: (52) Empty reply from server
        Created question in FIWARE Q/A platform on 14-02-2017 at 18:02
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/42231943/send-commands-to-context-broker-using-iotagent-ul


        +Question:+
        Send commands to Context Broker using iotagent-ul

        +Description:+
        I'm trying to send commands to the Orion Context Broker using iotagent-ul with HTTP protcol.
        Context Broker and IoT Agent are in different servers (actually IoTA is in running in my laptop).
        I've configured the necessary parameters in config.js file.

        My request is as follows:

        curl -L POST -H "Fiware-Service: myHome" -H "Fiware-ServicePath: /environment" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
        "devices": [
            {
                "device_id": "sensor01",
                "entity_name": "LivingRoomSensor",
                "entity_type": "multiSensor",
                "attributes": [
                      { "object_id": "t", "name": "Temperature", "type": "celsius" },
                      { "object_id": "l", "name": "Luminosity", "type": "lumens" }
                ]
            }
        ]
        }
        ' 'http://localhost:4061/iot/devices'


        It shows the following erros:


        In IoTA terminal:


        time=2017-02-14T15:06:14.832Z | lvl=ERROR | corr=88ed3729-6682-44ce-9b0a-28098e54c94e | trans=88ed3729-6682-44ce-9b0a-28098e54c94e | op=IoTAgentNGSI.DomainControl | srv=myHome | subsrv=/environment | msg=TypeError: Cannot read property 'findOne' of undefined | comp=IoTAgent


        In "cURL terminal":


        curl: (52) Empty reply from server
        HD-Chapter IoT [ 10839 ]
        fla Fernando Lopez made changes -
        Assignee Jose Manuel Cantera [ jmcantera ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:06|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 -

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

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        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 ]
        Hide
        backlogmanager Backlog Manager added a comment -

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

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:07|CREATED monitor | # answers= 1, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: