Embed presentation
Downloaded 74 times























![Configuration API: Group provision Create service• /iot/services Not exactly REST (check doc)• POST• GET• DELETE• PUT Static attributes Mandatory• Resource• Api key• Entity Type23{"services": [{"apikey": "4jggokgpepnvsb2uv4s40d59ov","cbroker": "http://0.0.0.0:1026","entity_type": "thing","resource": "/iot/d"}]}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-24-2048.jpg&f=jpg&w=240)
![Configuration API: Device provision Create device• /iot/devices Not exactly REST (check doc):• POST• GET• DELETE• PUT Mandatory• Device_id• Entity_type• protocol Commands• endpoint24{"devices": [{"device_id": "my_device_01","entity_name": "my_entity_01","entity_type": "thing","protocol": "PDI-IoTA-UltraLight","timezone": "Europe/Madrid","attributes": [{"object_id": "t","name": "temperature","type": "int"},{"object_id": "l","name": "luminosity","type": "number"}]}]}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-25-2048.jpg&f=jpg&w=240)












![Active attributes37…"attributes": [{ "object_id": "t", "name": "temperature", "type": "float" },{ "object_id": "h", "name": "humidity", "type": "float" }],…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-38-2048.jpg&f=jpg&w=240)
![Lazy attributes Q: Why all this complication? Why don’t use only active attributes?38…"lazy":[{ "object_id": "l", "name": "luminosity", "type": "percentage" }],…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-39-2048.jpg&f=jpg&w=240)
![Static attributes Similar to active attributes but…• They don’t correspond to actual measures sent by the physical device• They have a fixed value• They are attached to every IOTA-to-CB update operation Q: Why using static attributes?39…"static_attributes": [{ "name": "serialID", "type": "02598347", "value": "02598347" }]…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-40-2048.jpg&f=jpg&w=240)
![Commands Three supporting attributes at CB (per command)• <cmd> (write), the one used by the application (through update contextat CB) in order to execute command• <cmd>_status (read only), the one in which IOTA published status□ UNKNOWN: transient status, just after device provisioning and before anyexecution is done□ PENDING: command execution is in progress□ ERROR: command execution finished in error status□ FINISHED: command execution finished in ok status• <cmd>_info (read only): upon completion, the result of the commandexecution (if any) is published by IOTA in this attribute Example:• turn• turn_info• turn_status40…"commands": [{ "object_id": "u", "name": "turn", "type": "string" }],…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-41-2048.jpg&f=jpg&w=240)
![Commands41…"commands": [{ "object_id": "u", "name": "turn", "type": "string" }],…turn_statusturn_statusturn_info](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-42-2048.jpg&f=jpg&w=240)

The document provides an overview of the FIWARE platform, specifically its IoT capabilities, including context management and data interoperability through a standardized API. It describes various components such as the Orion Context Broker, IoT agents, and the different protocols and payload formats supported for device communication. Additionally, it lists resources for further information and deployment guidance for FIWARE services in smart environments.























![Configuration API: Group provision Create service• /iot/services Not exactly REST (check doc)• POST• GET• DELETE• PUT Static attributes Mandatory• Resource• Api key• Entity Type23{"services": [{"apikey": "4jggokgpepnvsb2uv4s40d59ov","cbroker": "http://0.0.0.0:1026","entity_type": "thing","resource": "/iot/d"}]}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-24-2048.jpg&f=jpg&w=240)
![Configuration API: Device provision Create device• /iot/devices Not exactly REST (check doc):• POST• GET• DELETE• PUT Mandatory• Device_id• Entity_type• protocol Commands• endpoint24{"devices": [{"device_id": "my_device_01","entity_name": "my_entity_01","entity_type": "thing","protocol": "PDI-IoTA-UltraLight","timezone": "Europe/Madrid","attributes": [{"object_id": "t","name": "temperature","type": "int"},{"object_id": "l","name": "luminosity","type": "number"}]}]}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-25-2048.jpg&f=jpg&w=240)












![Active attributes37…"attributes": [{ "object_id": "t", "name": "temperature", "type": "float" },{ "object_id": "h", "name": "humidity", "type": "float" }],…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-38-2048.jpg&f=jpg&w=240)
![Lazy attributes Q: Why all this complication? Why don’t use only active attributes?38…"lazy":[{ "object_id": "l", "name": "luminosity", "type": "percentage" }],…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-39-2048.jpg&f=jpg&w=240)
![Static attributes Similar to active attributes but…• They don’t correspond to actual measures sent by the physical device• They have a fixed value• They are attached to every IOTA-to-CB update operation Q: Why using static attributes?39…"static_attributes": [{ "name": "serialID", "type": "02598347", "value": "02598347" }]…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-40-2048.jpg&f=jpg&w=240)
![Commands Three supporting attributes at CB (per command)• <cmd> (write), the one used by the application (through update contextat CB) in order to execute command• <cmd>_status (read only), the one in which IOTA published status□ UNKNOWN: transient status, just after device provisioning and before anyexecution is done□ PENDING: command execution is in progress□ ERROR: command execution finished in error status□ FINISHED: command execution finished in ok status• <cmd>_info (read only): upon completion, the result of the commandexecution (if any) is published by IOTA in this attribute Example:• turn• turn_info• turn_status40…"commands": [{ "object_id": "u", "name": "turn", "type": "string" }],…](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-41-2048.jpg&f=jpg&w=240)
![Commands41…"commands": [{ "object_id": "u", "name": "turn", "type": "string" }],…turn_statusturn_statusturn_info](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontofiwareiot-170606101654%2f75%2fIntroduction-to-FIWARE-IoT-42-2048.jpg&f=jpg&w=240)