A
1: S
ap
V
2 •
1
2
3
© 2017 Telos Alliance - Rev 1.2
Multiple properties may also be returned in which case only objects that contain both properties will be returned.
For example:
get Devices#0.WinDriver#[tcp://172.16.1.254:93] Pinstate, FriendlyName $MAX_DEPTH=-1 $DONE
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#18.GpioPinState#2
Pinstate=”h”, FriendlyName=”PIn 2” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#18.GpioPinState#3
Pinstate=”h”, FriendlyName=”PIn 3” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#18.GpioPinState#5
Pinstate=”h”, FriendlyName=”PIn 5” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#13.GpioPinState#5
Pinstate=”h”, FriendlyName=”PIn 5” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#13.GpioPinState#4
Pinstate=”h”, FriendlyName=”PIn 4” $MAX_DEPTH=-1 $DONE
You can also specify a value in a property and then only items where the property matches that value will be
returned.
get Devices#0.WinDriver#[tcp://172.16.1.254:93] Pinstate=”l” $MAX_DEPTH=-1 $DONE
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#18.GpioPinState#2
Pinstate=”l”, FriendlyName=”PIn 2” $MAX_DEPTH=-1
indi Devices#0.WinDriver#[tcp://172.16.1.254:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#18.GpioPinState#3
Pinstate=”l”, FriendlyName=”PIn 3” $MAX_DEPTH=-1 $DONE
Subscription Examples
All of the examples above also work with subscriptions. For example:
SUB Devices#0 $MAX_DEPTH=-1
This will not return anything immediately. Any time any property beneath Devices#0 changes, it will get returned.
If you wanted to subscribe to all GPIO changes you could send:
SUB Devices#0 PinState $MAX_DEPTH=-1