SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

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
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
Diya Sharma
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Chandigarh Call girls 9053900678 Call girls in Chandigarh
 

Kürzlich hochgeladen (20)

Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
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...
 
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft DatingDubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
 
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)
 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
 
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
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
Enjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort Service
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
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
 

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

Hinweis der Redaktion

  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).