Documentation

Mistake on this page? Email us

Device resource management

Resources are sensors and actuators in a device. Device Resource management means, for example, reading a temperature value or controlling a device-activated door lock.

You can use the Device Management services to manage device Resources and execute actions on these devices. The functionality relies on an integration of the Device Management Connect API for your web-server application and on the Device Management Client API for your device application.

Device Management Client also supports periodic and event-triggered reporting of Resource values. The web application, through the Cloud LwM2M server, can set a rule-based subscription to an Object, an Object Instance or a Resource, which then results in asynchronous notifications when an Object Instance changes. You can do this for each resource that you have specified to be Observable.

Read more in the Event notification channel section.

Device communication

The overall device communication flow is illustrated in this diagram:

  1. Devices register to make their Resources discoverable in a standard way. This was covered in the Connecting section.
  2. The web application is notified of the device registration.
  3. Web applications send REST requests to Device Management Connect to receive information from the device, or to send instructions to the application on the device.
  4. Most REST requests are handled in asynchronous mode, so Device Management Connect returns the code 202 to the application.
  5. Device Management Connect ensures that the request is delivered to the device.
  6. The client responds to Device Management Connect.
  7. Device Management Connect sends the final asynchronous response (also called notification) to the web application's webhook.

Cloud Connect LwM2M Communication

About the documentation

This section reviews the resource model Device Management Connect uses, then explains how to use the APIs to:

  1. Create and configure Objects and Resources.
  2. Access and use Objects and Resources.
  3. Observe Resource values.
  4. Manage Resources through the Device Management Portal.