SlideShare a Scribd company logo
1 of 10
IoT Exercises (IDAS GE)
(Advanced– LWM2M IoT-Agent)
Contact twitter
@fermingalan
Contact email
fermin.galanmarquez@telefonica.com
leandro.guillen@imdea.org
daniel.moranjimenez@telefonica.com
0. Deploy a Lightweight M2M IoT Agent
• Prerequisite
– Node.js v0.10.x (installed interpreter)
• Steps
– Install the IoT Agent from the following URL
https://github.com/telefonicaid/lightweightm2m-iotagent
• Hints
– The agent is a standard Node.js application, following the
usual folder conventions (as /bin for the executables)
Easy
1. Provision a Device using the Provisioning API
• Prerequisites
– Any kind of REST Client (programmatic, command-line, browser plugin...)
• Steps
– The goal of this exercise is to handle the device creation and management
with an IoT Agent. You will provision a device with the following properties:
• name: ws1
• entity name: weather1
• type: weatherStation
• attributes: two attributes, temperature and humidity, with float type.
– Do the following steps:
• Provision the new device in the IoT Agent using the Device Provisioning API.
• List the information about the provisioned device.
• Remove the device from the IoT Agent
• Hints
– You will find all the API operations in the following URL:
https://github.com/telefonicaid/iotagent-node-lib#-device-provisioning-api
Easy
• Prerequisites
– Node.js v0.10.x (installed interpreter)
– Context Broker knowledge (queries)
• Steps
– In this exercise you will install a LWM2M client to simulate the information
sending from the client. You can find the LWM2M client in the following URL
https://github.com/telefonicaid/lwm2m-node-lib
– Perform the following tasks :
• Provision a device as the one you used in exercise 1 in the IoT Agent with id “ws2’
and name “weather2” with Temperature and Humidity sensors as defined in the
OMA Registry (names should be “Temperature Sensor” and “Humidity Sensor”).
• Install the client project and execute the command line LWM2M Client.
• In the client, create the temperature and humidity objects in the client and assign
them resource with ID 0.
• Connect the device to the IoT Agent. The client should be assigned an ID by the
server.
• Change the original values and check the information changes in the Context
Broker.
• Hints
– the Object ID for the temperature sensor in the OMA Registry is 3303 and
for the humidity sensor 3304.
Medium2. Register a device in the IoT Agent using the
LWM2M Command line client
• Prerequisites
– Node.js v0.10.x (installed interpreter)
– Context Broker knowledge (queries)
• Steps
– The goal of this exercise is to try the lazy attribute query
functionalities of the IOT Agents.
– Perform the following tasks :
• Provision another device as the one you used in exercise 1, but declare
both attributes as lazy.
• Execute the command line LWM2M client.
• Create the temperature and humidity objects in the LWM2M client and
assign them a value.
• Query the information in the context broker, and compare it to the
value you assigned.
• Change the values in the client.
• Query the Context broker for the same information.
• Hints
– OMA Registry mappings are lazy by default, so there is no
need to declare them in the Device Provisioning.
Medium
3. Retrieve information from the LWM2M Client
using the Context Broker (default OMA
Registry Mapping).
• Prerequisites
– Node.js v0.10.x (installed interpreter)
– Context Broker knowledge (updates)
• Steps
– The goal of this exercise is to try the lazy attribute update
functionalities of the IOT Agents.
– Perform the following tasks :
• Provision another device as the one you used in exercise 1, but declare
both attributes as lazy.
• Execute the command line LWM2M client.
• Create the temperature and humidity objects in the LWM2M client and
assign them a value.
• Query the information of the attributes in the Context Broker and check
against the values you provided.
• Update the values in the Context Broker.
• Check the values in the client and check against the values you
provided to the Context Broker.
• Hints
– OMA Registry mappings are lazy by default, so there is no
need to declare them in the Device Provisioning.
Medium4. Send information to the LWM2M Client using
the Context Broker
• Prerequisites
– Node.js v0.10.x (installed interpreter)
– Context Broker knowledge (NGSI9)
• Steps
– The goal of this exercise is to learn how to check
for the presence of new Context Providers using
queries to the Context Broker.
– Perform the following tasks :
• Check the context broker availability for Weather
Stations.
• Create a new WeatherStation device named ‘weather5’
with id ‘ws5’, with two lazy attributes.
• Use the client to register the actual device.
• Check the context availability again and check your new
Weather station is available.
• Hints
Medium5. Detect new context providers through
queries
• Prerequisites
– Node.js v0.10.x (installed interpreter)
– Context Broker knowledge (NGSI9)
• Steps
– The goal of this exercise is to learn how to subscribe to the
creation of new Context Providers in the Context Broker.
– Perform the following tasks :
• Create an HTTP server listening to Context Availability notifications on
the WeatherStation types.
• Create a new WeatherStation device named ws6, with two lazy
attributes.
• Check the context availability notification has arrived and that the
attributes are the ones you created.
• Hints
6. Detect new context providers through
subscription
Hard
• Prerequisites
– Node.js v0.10.x (installed interpreter), Context Broker
knowledge (queries)
• Steps
– The goal of this exercise is to provision devices using
mappings that differ from the OMA Registry (or even do not
appear in the Registry at all), and lean how to configure
additional device provisioning properties.
– Perform the following tasks :
• Provision a new device “ws7” with two lazy attributes:
– One called “TheTemperature”, with type “TheType”, that maps to the LWM2M
URI /34000/0/5
– Another one called “TheHumidity”, with type “TheOtherType”, that maps to
the LWM2M URI /34000/0/6
• Open the client
• Create the /34000/0 object
• Set values for the resources with IDs 5 and 6
• Register to the IOTAgent
• Check the Context Broker for the values you set.
• Hints
– Use the ‘internal_attributes’ attribute in the provision.
7. Provision devices with customized attribute
mapping
Easy
• Prerequisites
– Node.js v0.10.x (installed interpreter)
– Context Broker knowledge (queries)
• Steps
– The goal of this exercise is to show how to configure device groups, so you don’t have
to provision every device you want to connect to the platform.
• You will be creating a new group of devices, with the following parameters:
• type: HidroponicPot
• lazy attributes:
– Humidity
– Temperature
• active attributes:
– Luminance
• resource: /hidroponic
– Perform the following tasks :
• You will be creating a new group of devices, with the following parameters:
• type: HidroponicPot
• lazy attributes:
– Humidity
– Temperature
• active attributes:
– Luminance
• resource: /hidroponic
• Hints
– You will find all the API operations in the following URL.
https://github.com/telefonicaid/iotagent-node-lib#-configuration-api
8. Provision device groups using the
Configuration API
Easy

More Related Content

What's hot

Io t idas_intro_ul20_nobkg
Io t idas_intro_ul20_nobkgIo t idas_intro_ul20_nobkg
Io t idas_intro_ul20_nobkg
FIWARE
 
Developing your first application using FI-WARE
Developing your first application using FI-WAREDeveloping your first application using FI-WARE
Developing your first application using FI-WARE
Fermin Galan
 

What's hot (19)

Introduction to FIWARE IoT
Introduction to FIWARE IoTIntroduction to FIWARE IoT
Introduction to FIWARE IoT
 
FIWARE IoT Proposal & Community
FIWARE IoT Proposal & CommunityFIWARE IoT Proposal & Community
FIWARE IoT Proposal & Community
 
A Complete IoT Backend Infrastructure in FIWARE
A Complete IoT Backend Infrastructure in FIWAREA Complete IoT Backend Infrastructure in FIWARE
A Complete IoT Backend Infrastructure in FIWARE
 
Fiware IoT_IDAS_intro_ul20_v2
Fiware IoT_IDAS_intro_ul20_v2Fiware IoT_IDAS_intro_ul20_v2
Fiware IoT_IDAS_intro_ul20_v2
 
Context Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsContext Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basics
 
Fiware io t_ul20_cpbr8
Fiware io t_ul20_cpbr8Fiware io t_ul20_cpbr8
Fiware io t_ul20_cpbr8
 
What is an IoT Agent
What is an IoT AgentWhat is an IoT Agent
What is an IoT Agent
 
Io t idas_intro_ul20_nobkg
Io t idas_intro_ul20_nobkgIo t idas_intro_ul20_nobkg
Io t idas_intro_ul20_nobkg
 
201410 1 fiware-overview
201410 1 fiware-overview201410 1 fiware-overview
201410 1 fiware-overview
 
Developing an IoT System FIWARE Based from the Scratch
Developing an IoT System FIWARE Based from the ScratchDeveloping an IoT System FIWARE Based from the Scratch
Developing an IoT System FIWARE Based from the Scratch
 
FIWARE IoT Introduction 1
FIWARE IoT Introduction 1FIWARE IoT Introduction 1
FIWARE IoT Introduction 1
 
Fiware, the future internet
Fiware, the future internetFiware, the future internet
Fiware, the future internet
 
Fiware, the future internet
Fiware, the future internetFiware, the future internet
Fiware, the future internet
 
IoT-Broker Developers Week
IoT-Broker Developers WeekIoT-Broker Developers Week
IoT-Broker Developers Week
 
Connecting to the internet of things (IoT)
Connecting to the internet of things (IoT)Connecting to the internet of things (IoT)
Connecting to the internet of things (IoT)
 
FIWARE Internet of Things
FIWARE Internet of ThingsFIWARE Internet of Things
FIWARE Internet of Things
 
Developing your first application using FI-WARE
Developing your first application using FI-WAREDeveloping your first application using FI-WARE
Developing your first application using FI-WARE
 
Setting up your virtual infrastructure using FIWARE Lab Cloud
Setting up your virtual infrastructure using FIWARE Lab CloudSetting up your virtual infrastructure using FIWARE Lab Cloud
Setting up your virtual infrastructure using FIWARE Lab Cloud
 
FIWARE Tech Summit - FIWARE IoT Agents
FIWARE Tech Summit - FIWARE IoT AgentsFIWARE Tech Summit - FIWARE IoT Agents
FIWARE Tech Summit - FIWARE IoT Agents
 

Similar to Fiware Developers Week Iot exercises (Advanced)

How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updated
Shikha Srivastava
 

Similar to Fiware Developers Week Iot exercises (Advanced) (20)

Fiware cloud developers week brussels
Fiware cloud developers week brusselsFiware cloud developers week brussels
Fiware cloud developers week brussels
 
IzoT platform presentation
IzoT platform presentationIzoT platform presentation
IzoT platform presentation
 
Intro to Automation Using Perfecto's CQ Lab
Intro to Automation Using Perfecto's CQ LabIntro to Automation Using Perfecto's CQ Lab
Intro to Automation Using Perfecto's CQ Lab
 
Performance Testing Internet of Things
Performance Testing Internet of ThingsPerformance Testing Internet of Things
Performance Testing Internet of Things
 
ICINGA (Monitoring Basics & Reporting)
ICINGA (Monitoring Basics & Reporting) ICINGA (Monitoring Basics & Reporting)
ICINGA (Monitoring Basics & Reporting)
 
Nebula container orchestrator
Nebula container orchestratorNebula container orchestrator
Nebula container orchestrator
 
Performance testing meets the cloud - Artem Shendrikov
Performance testing meets the cloud -  Artem ShendrikovPerformance testing meets the cloud -  Artem Shendrikov
Performance testing meets the cloud - Artem Shendrikov
 
Secure Multi Tenant Cloud with OpenContrail
Secure Multi Tenant Cloud with OpenContrailSecure Multi Tenant Cloud with OpenContrail
Secure Multi Tenant Cloud with OpenContrail
 
Demystifying puppet
Demystifying puppetDemystifying puppet
Demystifying puppet
 
Building Bizweb Microservices with Docker
Building Bizweb Microservices with DockerBuilding Bizweb Microservices with Docker
Building Bizweb Microservices with Docker
 
Mini Project- Virtual Network Project
Mini Project- Virtual Network ProjectMini Project- Virtual Network Project
Mini Project- Virtual Network Project
 
How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updated
 
AWS Lambda Presentation (Tech Talk DC)
AWS Lambda Presentation (Tech Talk DC)AWS Lambda Presentation (Tech Talk DC)
AWS Lambda Presentation (Tech Talk DC)
 
How to install and use Kubernetes
How to install and use KubernetesHow to install and use Kubernetes
How to install and use Kubernetes
 
Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
Building the Internet of Things with Thingsquare and Contiki - day 1, part 3Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
 
Docker on docker leveraging kubernetes in docker ee
Docker on docker leveraging kubernetes in docker eeDocker on docker leveraging kubernetes in docker ee
Docker on docker leveraging kubernetes in docker ee
 
How to Install and Use Kubernetes by Weaveworks
How to Install and Use Kubernetes by Weaveworks How to Install and Use Kubernetes by Weaveworks
How to Install and Use Kubernetes by Weaveworks
 
Kubernetes-Presentation-Syed-Murtaza-Hassan
Kubernetes-Presentation-Syed-Murtaza-HassanKubernetes-Presentation-Syed-Murtaza-Hassan
Kubernetes-Presentation-Syed-Murtaza-Hassan
 
Server-side JS with NodeJS
Server-side JS with NodeJSServer-side JS with NodeJS
Server-side JS with NodeJS
 
Orchestrating Microservices with Kubernetes
Orchestrating Microservices with Kubernetes Orchestrating Microservices with Kubernetes
Orchestrating Microservices with Kubernetes
 

Recently uploaded

valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
imonikaupta
 
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
nirzagarg
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
 
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 

Fiware Developers Week Iot exercises (Advanced)

  • 1. IoT Exercises (IDAS GE) (Advanced– LWM2M IoT-Agent) Contact twitter @fermingalan Contact email fermin.galanmarquez@telefonica.com leandro.guillen@imdea.org daniel.moranjimenez@telefonica.com
  • 2. 0. Deploy a Lightweight M2M IoT Agent • Prerequisite – Node.js v0.10.x (installed interpreter) • Steps – Install the IoT Agent from the following URL https://github.com/telefonicaid/lightweightm2m-iotagent • Hints – The agent is a standard Node.js application, following the usual folder conventions (as /bin for the executables) Easy
  • 3. 1. Provision a Device using the Provisioning API • Prerequisites – Any kind of REST Client (programmatic, command-line, browser plugin...) • Steps – The goal of this exercise is to handle the device creation and management with an IoT Agent. You will provision a device with the following properties: • name: ws1 • entity name: weather1 • type: weatherStation • attributes: two attributes, temperature and humidity, with float type. – Do the following steps: • Provision the new device in the IoT Agent using the Device Provisioning API. • List the information about the provisioned device. • Remove the device from the IoT Agent • Hints – You will find all the API operations in the following URL: https://github.com/telefonicaid/iotagent-node-lib#-device-provisioning-api Easy
  • 4. • Prerequisites – Node.js v0.10.x (installed interpreter) – Context Broker knowledge (queries) • Steps – In this exercise you will install a LWM2M client to simulate the information sending from the client. You can find the LWM2M client in the following URL https://github.com/telefonicaid/lwm2m-node-lib – Perform the following tasks : • Provision a device as the one you used in exercise 1 in the IoT Agent with id “ws2’ and name “weather2” with Temperature and Humidity sensors as defined in the OMA Registry (names should be “Temperature Sensor” and “Humidity Sensor”). • Install the client project and execute the command line LWM2M Client. • In the client, create the temperature and humidity objects in the client and assign them resource with ID 0. • Connect the device to the IoT Agent. The client should be assigned an ID by the server. • Change the original values and check the information changes in the Context Broker. • Hints – the Object ID for the temperature sensor in the OMA Registry is 3303 and for the humidity sensor 3304. Medium2. Register a device in the IoT Agent using the LWM2M Command line client
  • 5. • Prerequisites – Node.js v0.10.x (installed interpreter) – Context Broker knowledge (queries) • Steps – The goal of this exercise is to try the lazy attribute query functionalities of the IOT Agents. – Perform the following tasks : • Provision another device as the one you used in exercise 1, but declare both attributes as lazy. • Execute the command line LWM2M client. • Create the temperature and humidity objects in the LWM2M client and assign them a value. • Query the information in the context broker, and compare it to the value you assigned. • Change the values in the client. • Query the Context broker for the same information. • Hints – OMA Registry mappings are lazy by default, so there is no need to declare them in the Device Provisioning. Medium 3. Retrieve information from the LWM2M Client using the Context Broker (default OMA Registry Mapping).
  • 6. • Prerequisites – Node.js v0.10.x (installed interpreter) – Context Broker knowledge (updates) • Steps – The goal of this exercise is to try the lazy attribute update functionalities of the IOT Agents. – Perform the following tasks : • Provision another device as the one you used in exercise 1, but declare both attributes as lazy. • Execute the command line LWM2M client. • Create the temperature and humidity objects in the LWM2M client and assign them a value. • Query the information of the attributes in the Context Broker and check against the values you provided. • Update the values in the Context Broker. • Check the values in the client and check against the values you provided to the Context Broker. • Hints – OMA Registry mappings are lazy by default, so there is no need to declare them in the Device Provisioning. Medium4. Send information to the LWM2M Client using the Context Broker
  • 7. • Prerequisites – Node.js v0.10.x (installed interpreter) – Context Broker knowledge (NGSI9) • Steps – The goal of this exercise is to learn how to check for the presence of new Context Providers using queries to the Context Broker. – Perform the following tasks : • Check the context broker availability for Weather Stations. • Create a new WeatherStation device named ‘weather5’ with id ‘ws5’, with two lazy attributes. • Use the client to register the actual device. • Check the context availability again and check your new Weather station is available. • Hints Medium5. Detect new context providers through queries
  • 8. • Prerequisites – Node.js v0.10.x (installed interpreter) – Context Broker knowledge (NGSI9) • Steps – The goal of this exercise is to learn how to subscribe to the creation of new Context Providers in the Context Broker. – Perform the following tasks : • Create an HTTP server listening to Context Availability notifications on the WeatherStation types. • Create a new WeatherStation device named ws6, with two lazy attributes. • Check the context availability notification has arrived and that the attributes are the ones you created. • Hints 6. Detect new context providers through subscription Hard
  • 9. • Prerequisites – Node.js v0.10.x (installed interpreter), Context Broker knowledge (queries) • Steps – The goal of this exercise is to provision devices using mappings that differ from the OMA Registry (or even do not appear in the Registry at all), and lean how to configure additional device provisioning properties. – Perform the following tasks : • Provision a new device “ws7” with two lazy attributes: – One called “TheTemperature”, with type “TheType”, that maps to the LWM2M URI /34000/0/5 – Another one called “TheHumidity”, with type “TheOtherType”, that maps to the LWM2M URI /34000/0/6 • Open the client • Create the /34000/0 object • Set values for the resources with IDs 5 and 6 • Register to the IOTAgent • Check the Context Broker for the values you set. • Hints – Use the ‘internal_attributes’ attribute in the provision. 7. Provision devices with customized attribute mapping Easy
  • 10. • Prerequisites – Node.js v0.10.x (installed interpreter) – Context Broker knowledge (queries) • Steps – The goal of this exercise is to show how to configure device groups, so you don’t have to provision every device you want to connect to the platform. • You will be creating a new group of devices, with the following parameters: • type: HidroponicPot • lazy attributes: – Humidity – Temperature • active attributes: – Luminance • resource: /hidroponic – Perform the following tasks : • You will be creating a new group of devices, with the following parameters: • type: HidroponicPot • lazy attributes: – Humidity – Temperature • active attributes: – Luminance • resource: /hidroponic • Hints – You will find all the API operations in the following URL. https://github.com/telefonicaid/iotagent-node-lib#-configuration-api 8. Provision device groups using the Configuration API Easy

Editor's Notes

  1. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  2. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  3. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  4. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  5. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  6. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  7. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  8. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).
  9. 1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones. 2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores.     Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ). 3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1.    (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).