From the wonderful RedGuides Wiki
This command is added by MQ2DanNet
Syntax Key
Notation |
Description
|
Text without brackets or braces |
Required items
|
<Text inside angle brackets> |
Placeholder for which you must supply a value
|
[Text inside square brackets] |
Optional items
|
Vertical bar (|) |
Separator for mutually exclusive items; choose one
|
{Text | inside | braces} |
Set of required items; choose one
|
Ellipsis (…) |
Items that can be repeated
|
Syntax
|
/dobserve <name> [-q <query>] [-o <result>] [-drop]
|
Description
|
Add an observer on name and update values in result, or drop the observer.
|
|
Options
Option |
Description |
-q <query> |
A query is simply a normal TLO access from the perspective of the peer with the external ${} . For example, Target.ID |
-o <result> |
Optional if no out variable is needed (or not executing from a macro). (variables are created with /declare) |
-drop |
Drops the observer |
Examples
- Reading an observer's data
${DanNet[<name>].Observe[<query>]}
- or
${DanNet[<name>].O[<query>]}
- Dropping an observer
/dobserve <name> -q <query> -drop
See also