A
1: S
ap
V
2 •
1
2
2
© 2017 Telos Alliance - Rev 1.2
The value -1 is special to the Max_Depth system item as it represents infinite. Therefore, using a Max_Depth value
of -1 returns everything below the current branch. For example, the following command would return all of the
objects at any branch level underneath Devices#0:
get Devices#0. $MAX_DEPTH=-1
This command would return all of the objects and their properties at any branch level underneath Devices#0:
get Devices#0 $MAX_DEPTH=-1
Use the $MAX_DEPTH with some caution as it can take a bit of CPU power to generate some of these large lists. It
is better to subscribe to changes of a certain branch and then cache the results of MAX_DEPTH rather than polling
large lists.
It is also possible to use a property name with the MAX_DEPTH system item. For example:
get Devices#0.WinDriver#[tcp://172.16.1.254:93] Pinstate $MAX_DEPTH=-1 $DONE
Would list every instance of the PinState property that exists below Devices#0.WinDriver#[tcp://172.16.1.254:93]
with the $DONE at the end. The response (abbreviated) below might look like:
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpi#10.GpioPinState#4
Pinstate=”h” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpi#10.GpioPinState#3
Pinstate=”h” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpi#10.GpioPinState#1
Pinstate=”h” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpi#10.GpioPinState#5
Pinstate=”h” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpi#14.GpioPinState#2
Pinstate=”h” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpi#14.GpioPinState#4
Pinstate=”h” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpi#14.GpioPinState#3
Pinstate=”h” $MAX_DEPTH=-1 $DONE
Please note:
The example above is abbreviated. In reality this would return 120 INDIs (24*5 pins).