The GETSET command returns the values of requested parameters preceded with SET. This makes the response a valid string to be used as SET command. This is relevant, for example, when reading and writing large amounts of parameters.
With one single GETSET command, the response can include:
- Single parameter (leaf)
- Multiple parameters (branch, root)
Command:
getset <parameter>
Response:
set <parameter> <value>[ *]
Name | Description | Value |
---|---|---|
parameter | Name of root, branch, leaf, or parameter list | See Parameters. |
value | Value of request parameter | |
* | Indicates that the parameter value differs from the default value Ignored when writing the value to the parameter |
Examples
-
Requesting information about the port speed:
Command:
getset com1.comm.baud
Response:
set com1.comm.baud 9600 2>
-
Requesting information about the port settings:
Command:
getset com1.comm
Response:
set com1.comm.baud 9600 set com1.comm.data 8 set com1.comm.parity N set com1.comm.stop 1 2>