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 input object class

To begin our implementation, we create a subfolder to our project called IPSO. In it, we will put all IPSO-related classes. We begin by defining a class for the Digital Input object. It's quite small: all it does is provide a placeholder for an array of Digital Input object instances, and define the object ID:

public class DigitalInput : Lwm2mObject 
{ 
  public DigitalInput(params DigitalInputInstance[] Inputs) 
    : base(3200, Inputs) 
  { 
  } 
} 

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