I'm using IDAS and i've previously registered 4 virtual sensors and i had no problem with it. After making tests with those sensors (a month ago from now or so) i went and tryed to register another sensor with no success.
My request:
python2.7 RegisterDevice.py SENSOR_TEMP sensortest3 sensortest3
The response:
* opening: ./devices/SENSOR_TEMP
* Asking to http://130.206.80.40:5371/iot/devices
* Headers: {'Fiware-Service': 'fiwaretestapi', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-Token': 'NULL'}
* Headers: {'Fiware-Service': 'fiwaretestapi', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-Token': 'NULL'}
* Sending PAYLOAD:
{
"devices": [
{
"entity_name": "sensortest3",
"entity_type": "thing",
"static_attributes": [
{
"type": "string",
"name": "att_name",
"value": "value"
}
],
"timezone": "Europe/Madrid",
"attributes": [
{
"type": "int",
"name": "temperature",
"object_id": "t"
}
],
"device_id": "sensortest3"
}
]
}
...
* Status Code: 400
* Response:
{"reason":"The request is not well formed","details":"Missing required property: protocol [/devices[0]]"}
As you can see by my ListDevices.py request, i have 4 sensors registered:
* Asking to http://130.206.80.40:5371/iot/devices
* Headers: {'Fiware-Service': 'fiwaretestapi', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-Token': 'NULL'}
...
* Status Code: 200
* Response:
{ "count": 4,"devices": [{ "device_id" : "autocarro1" },{ "device_id" : "bustest3" },{ "device_id" : "bustest4" },{ "device_id" : "bustest5" }]}
Is there a limit or something to a number of devices in IDAS?
You just need to add the required property "protocol":