7. LW3 Programmers’ Reference
MX2-8x8-HDMI20 series – User's Manual
42
8.3.
LW3 commands
8.3.1.
Get Command
The ‘GET’ command can be used to get the child nodes, properties and methods of a specific node. It can
also be used to get the value of a property.
The response format
The first two characters of a response unambiguously identify the type of the element that the response
line concerns. The first character is the type of the element (node, property or method), the second is for
miscellaneous information (e.g. read/write rights).
The defined prefixes are:
‘n-’:
node
‘pr’:
property - only readable
‘pw’:
property - writable, readable
‘m-’:
method executable
After the prefix, the response contains the full path of the node, property or method after a space character.
Get all children of a node
Get all of the child nodes of a parent node, with one GET command.
Command format:
GET
●
[nodePath]
Response format:
n-
●
[nodePath]
Example:
˃
GET /MEDIA
˂
n- /MEDIA/SETTINGS
˂
n- /MEDIA/XP
˂
n- /MEDIA/NAMES
˂
n- /MEDIA/PRESET
˂
n- /MEDIA/SALVO
˂
n- /MEDIA/PORTS
Get all child nodes, properties and methods of a node
Get all child nodes, properties and methods of a node with one command, without using a wild card.
Command format:
GETALL
●
[nodePath]
Response format:
(for nodes)
n-
●
[nodePath]
Response format:
(for properties)
pX
●
[nodePath].[propertyName]=[parameter]
Legend:
X can be:
‘r’:
read-only
‘w’:
read-write
Response format:
(for methods)
m-
●
[nodePath]:[methodName]
Example:
˃
GETALL /EDID
˂
n- /EDID/F
˂
n- /EDID/D
˂
n- /EDID/U
˂
n- /EDID/E
˂
pr /EDID.EdidStatus=F49;F49;F49;F49;F49;F49;F49;F49;
˂
m- /EDID:copy
˂
m- /EDID:delete
˂
m- /EDID:reset
˂
m- /EDID:switch
˂
m- /EDID:switchAll
Get all properties and methods of a node
Get all properties and methods of a node, with one GET command and asterisk character.
Command format:
GET
●
[nodePath].*
Response format:
(for properties)
pX
●
[nodePath].[propertyName]=[parameter]
Legend:
X can be:
‘r’:
read-only
‘w’:
read-write
Response format:
(for methods)
m-
●
[nodePath]:[methodName]