O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the digital output object instance class

We now proceed with the actuator. We prepare the ActuatorLwm2m project in the same way as the SensorLwm2m project. The main difference is the types of objects and object instances we choose to add to the Lwm2mClient object.

Just as there's an IPSO Digital Input object, there's an IPSO Digital Output smart object. It is quite similar with one main difference: the main parameter is writable, and we need to connect the value of that parameter to our output. Following the steps outlined previously, for the creation of the DigitalInput and DigitalInputInstance classes, we create similar DigitalOutput and DigitalOutputInstance classes. When it is time to create the main resource, the digital output ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required