Orion updating the context even on sending even on sending wrong context attributes
Hi, I have setup iotagent-json and orion and have registered group and device on iotagent-json. now if i am sending extra attribute in the data-payload (on iotagent port 7896) for updating device attributes value. Iotagent is showing below error: "name":"DEVICENOTFOUND","message":"No device was found with id:GmMobileApplication","code":404} though the entity context is updated in orion for all the correct attributes.
On further analysis i could see that orion is also sending message ""code":"404","reasonPhrase":"No context element found","details":"GmMobileApplication"" to iotagent, yet orion is updating its database.
I am not able to understand the reason for this kindly suggest.
IotAgent json version: 1.17.0 Orion: 3.1.0
As I know, you have to use an MQTT server as described in the doc (https://fiware-iotagent-json.readthedocs.io/en/latest/stepbystep/index.html). But if you want to send data directly to IoT Agent via HTTP, try to use IoT Agent UL (https://github.com/telefonicaid/iotagent-ul)
Here are my steps to configure IoT Agent UL (1.12.0-next): git clone https://github.com/telefonicaid/iotagent-ul.git cd iotagent-ul/ npm install cp config.js config-ul.js Change params in config-ul.js if you need node bin/iotagent-ul config-ul.js
Provisioning: Service curl -iX POST 'http://localhost:4061/iot/services' -H 'Content-Type: application/json' -H 'fiware-service: openiot' -H 'fiware-servicepath: /'
{ "services": [ { "apikey": "1234567890", "cbroker": "http://localhost:1026", "entity_type": "Thing", "resource": "/iot/d" } ] }
Provisioning: Device curl -iX POST 'http://217.172.12.187:4061/iot/devices' -H 'Content-Type: application/json' -H 'fiware-service: openiot' -H 'fiware-servicepath: /'