{"action":"opened","issue":{"url":"https://api.github.com/repos/telefonicaid/sigfox-iotagent/issues/24","repository_url":"https://api.github.com/repos/telefonicaid/sigfox-iotagent","labels_url":"https://api.github.com/repos/telefonicaid/sigfox-iotagent/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/sigfox-iotagent/issues/24/comments","events_url":"https://api.github.com/repos/telefonicaid/sigfox-iotagent/issues/24/events","html_url":"https://github.com/telefonicaid/sigfox-iotagent/issues/24","id":305893961,"number":24,"title":"Device not found","user":{"login":"kapsali29","id":29201775,"avatar_url":"https://avatars3.githubusercontent.com/u/29201775?v=4","gravatar_id":"","url":"https://api.github.com/users/kapsali29","html_url":"https://github.com/kapsali29","followers_url":"https://api.github.com/users/kapsali29/followers","following_url":"https://api.github.com/users/kapsali29/following{/other_user}","gists_url":"https://api.github.com/users/kapsali29/gists{/gist_id}","starred_url":"https://api.github.com/users/kapsali29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapsali29/subscriptions","organizations_url":"https://api.github.com/users/kapsali29/orgs","repos_url":"https://api.github.com/users/kapsali29/repos","events_url":"https://api.github.com/users/kapsali29/events{/privacy}","received_events_url":"https://api.github.com/users/kapsali29/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T11:29:12Z","updated_at":"2018-03-16T11:29:12Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n\r\nI am trying to send measurements to the sigfox iotagent. Firstly i register the service and the device to the agent. As you can see from bellow:\r\n\r\n**Service Provisioning**\r\n```\r\nPOST /iot/services/ HTTP/1.1\r\n\r\nfiware-service: dumbMordor\r\nfiware-servicepath: /deserts\r\nContent-Type: application/json\r\n{\r\n  \"services\": [\r\n    {\r\n      \"resource\": \"/sigfoxDev\",\r\n      \"apikey\": \"23HJK3Y9090DSFL173209HV8801232\",\r\n      \"type\": \"SIGFOX\",\r\n      \"commands\": [],\r\n      \"lazy\": [],\r\n      \"active\": []\r\n    }\r\n  ]\r\n}\r\n```\r\n**Device Provisioning**\r\n```\r\nPOST /iot/devices/ HTTP/1.1\r\nfiware-service: dumbMordor\r\nfiware-servicepath: /deserts\r\nContent-Type: application/json\r\n\r\n{\r\n  \"devices\": [\r\n    {\r\n      \"device_id\": \"sigApp2\",\r\n      \"protocol\": \"SIGFOX\",\r\n      \"entity_name\": \"sigApp2\",\r\n      \"entity_type\": \"SIGFOX\",\r\n      \"timezone\": \"America/Santiago\",\r\n      \"attributes\": [\r\n        {\r\n          \"name\": \"time\",\r\n          \"type\": \"String\"\r\n        },\r\n        {\r\n          \"name\": \"statin\",\r\n          \"type\": \"String\"\r\n        },\r\n        {\r\n          \"name\": \"lng\",\r\n          \"type\": \"String\"\r\n        },\r\n        {\r\n          \"name\": \"lat\",\r\n          \"type\": \"String\"\r\n        },\r\n        {\r\n          \"name\": \"theCounter\",\r\n          \"type\": \"Integer\"\r\n        },\r\n        {\r\n          \"name\": \"theParam1\",\r\n          \"type\": \"Integer\"\r\n        },\r\n        {\r\n          \"name\": \"param2\",\r\n          \"type\": \"Integer\"\r\n        },\r\n        {\r\n          \"name\": \"tempDegreesCelsius\",\r\n          \"type\": \"Integer\"\r\n        },\r\n        {\r\n          \"name\": \"voltage\",\r\n          \"type\": \"Integer\"\r\n        }\r\n      ],\r\n      \"lazy\": [],\r\n      \"static_attributes\": [],\r\n      \"commands\": [],\r\n      \"internal_attributes\": [\r\n        {\r\n          \"mapping\": \"theCounter::uint:32  theParam1::uint:32 param2::uint:8 tempDegreesCelsius::uint:8  voltage::uint:16\"\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nAfter those steps, i try to send measures using the following GET callback\r\n\r\n```\r\nGET /update?id=sigApp3&amp;data={theCounter: 2, theparam1: 0,param2: 0,tempDegreesCelsius: 35,voltage: 3183} HTTP/1.1\r\n\r\nfiware-service: orion-dumbmordor\r\nfiware-servicepath: /deserts\r\nCache-Control: no-cache\r\n```\r\n\r\nAnd the response i get is, \r\n\r\n{\r\n    \"name\": \"DEVICE_NOT_FOUND\",\r\n    \"message\": \"No device was found with id:sigApp3\",\r\n    \"code\": 404\r\n}\r\n\r\nI checked the record in mongo, and the device id is `sigApp3` also i checked the agent logs and again nothing...\r\n"}}
{"actor":{"display_login":"kapsali29"}}