Binding Limitations

Binding allows you to bind a resource to a Thing's Property or Attribute. This topic contains information about the current limits on binding certain to the property or attribute. There are certain resources that are defined as integers, but represent encoded values that need to be interpreted as a state. The server does the mapping to a string to provide a meaningful value, instead of you to lookup the object definition to translate the state. Due to this restriction, it is possible to bind the following Resources to an attribute or a property:

Resources
3/x/6
3/x/11
3/x/20
4/x/0
4/x/1
5/x/3
5/x/5
5/x/8
5/x/9
6/x/4
500/x/0

For example: Download the attached trigger sample. The trigger evaluates the output value and performs property.publish in accordance to the integer value. In this sample, the trigger checks the value of 3/x/20 and assigns it to a corresponding property as defined below:

The lwm2m.resource.change event is triggered and

  • if 3/0/20=="Normal" then property.publish(0)
  • if 3/0/20=="Charging" then property.publish(1)
  • if 3/0/20=="Charge" then property.publish(2)

Related Topics Link IconRelated Topics