1 | initial version |
Ok, I sorted it out finally. It is related to the "entitytype" set when registering the sensor. I thougth I had to put it to "sensor", but I should have put it to the "entityname"'s type, which is "Restaurant".
So the "tooManyResult" error I got was, as explained by jmcantera, related to different entities with same id but of different types.
But we can effectiveley request an entity to see if the sensor was added before sending any sensor data update, as described in "Register a new sensor with the IoT Agent" in this doc: http://fiwaretourguide.readthedocs.io/en/latest/fiware-tour-guide-application-a-tutorial-on-how-to-integrate-the-main-fiware-ges/managing-iot-data/