
Page 66 / 113
Section 7.
Programmer’s reference
Following example presents the depth tree traversal of
Figure 7-1. Tree structure of nodes
Property
The
‘property’ in the LW3 protocol is basically a leaf, which has a well-defined value.
A property has a value.
A property cannot have child nodes or child properties. It is always a leaf.
A node can have any number of properties (may not have any).
A property is referenced with a dot (
‘.’) after the node name.
The properties’ name can contain the elements of the English alphabet, numbers
and underscore (
‘_’) character.
By convention, properties are beginning with capital letter, all other characters are
lowercase ones. In case of compound words, all words are beginning with a capital
letter (CamelCase).
The value of the property can contain any readable ASCII character (the control
characters have to be escaped, see section
on page
A property can be read-only or read/write.
Format:
pX
●/[nodeName].[propertyName]=[propertyValue]
Legend:
p:
property
X can be:
‘r’:
if the property is read-only.
‘w’:
if the property is readable, writable.
‘m’: manual for the property (see section
‘E’:
error message for the property (see section
Example:
First one is a read-only property, second one is a read-write property:
< pr●/SYS/CORE.PartNumber=91610103
< pw●/SYS/CORE.DeviceLabel=MODEX-F15-OPTS
Path of the nodes:
n-/node1
n-/node1/node11
n-/node1/node12
n-/node2
n-/node2/node21
n-/node2/node21/node211
n-/node3
n-/
node11
node1
node12
node2
node21
node211
node3