[ https://jira.fiware.org/browse/HELP-8801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez updated HELP-8801: --------------------------------- HD-Chapter: IoT 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 was: 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-Enabler: IDAS > [fiware-stackoverflow] Send commands to Context Broker using iotagent-ul > ------------------------------------------------------------------------ > > Key: HELP-8801 > URL: https://jira.fiware.org/browse/HELP-8801 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Jose Manuel Cantera > Labels: fiware, fiware-orion > > 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 -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy