/config/register/virtual/{reg}/value

The formula to calculate the value of this virtual register. It consists of a list of physical register names whose values are to be added or subtracted.

Get /config/register/virtual/{reg}/value

SecurityApiKey
Request
path Parameters
reg
required
string

The name of a virtual register. May not be empty, contain commas (,), and may not consist entirely of digits. Virtual register names may contain a single dot (.) between a prefix and a suffix. The prefix is called the view name.

query Parameters
max-depth
integer >= 1

Limit output depth of the response. See Max-Depth.

Example: max-depth=2
filter
string

Response filter string. See Filter-Spec.

Example: filter={foo,bar}
Responses
200

Normal response.

401

Unauthorized response.

get/config/register/virtual/{reg}/value
Request samples
Response samples
application/json
{
  • "result": [
    ],
  • "error": "Error message (present if an error occurred)."
}

Replace /config/register/virtual/{reg}/value

SecurityApiKey
Request
path Parameters
reg
required
string

The name of a virtual register. May not be empty, contain commas (,), and may not consist entirely of digits. Virtual register names may contain a single dot (.) between a prefix and a suffix. The prefix is called the view name.

Request Body schema: application/json
Array
op
string (configRegisterVirtualRegValueItemOp)

The operation that calculates the value of this addend.

Possible values are:

  • +: The physical register value is to be added.

  • -: The physical register value is to be subtracted.

  • +max0, -max0, +min0, -min0:

Deprecated. These operators do not work correctly and remain only to preserve compatibility with existing, old, device configurations. Attempting to write these operators with a PUT or POST request will result in an error. They can only be returned as a result of a GET request. The intent of these operators was to add (+max0, +min0) or subtract (-max0, -min0) the maximum of the physical register value and 0 (+max0, -max0) or the minimum of the register value and 0 (+min0, -min0).

Enum: "+" "-" "+max0" "-max0" "+min0" "-min0"
register
string (configRegisterVirtualRegValueItemRegister)

The name of the physical register to use in calculating the value of this addend.

Responses
200

Normal response.

401

Unauthorized response.

put/config/register/virtual/{reg}/value
Request samples
application/json
[
  • {
    },
  • {
    }
]
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Update /config/register/virtual/{reg}/value

SecurityApiKey
Request
path Parameters
reg
required
string

The name of a virtual register. May not be empty, contain commas (,), and may not consist entirely of digits. Virtual register names may contain a single dot (.) between a prefix and a suffix. The prefix is called the view name.

Request Body schema: application/json
Array
op
string (configRegisterVirtualRegValueItemOp)

The operation that calculates the value of this addend.

Possible values are:

  • +: The physical register value is to be added.

  • -: The physical register value is to be subtracted.

  • +max0, -max0, +min0, -min0:

Deprecated. These operators do not work correctly and remain only to preserve compatibility with existing, old, device configurations. Attempting to write these operators with a PUT or POST request will result in an error. They can only be returned as a result of a GET request. The intent of these operators was to add (+max0, +min0) or subtract (-max0, -min0) the maximum of the physical register value and 0 (+max0, -max0) or the minimum of the register value and 0 (+min0, -min0).

Enum: "+" "-" "+max0" "-max0" "+min0" "-min0"
register
string (configRegisterVirtualRegValueItemRegister)

The name of the physical register to use in calculating the value of this addend.

Responses
200

Normal response.

401

Unauthorized response.

post/config/register/virtual/{reg}/value
Request samples
application/json
[
  • {
    },
  • {
    }
]
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Delete /config/register/virtual/{reg}/value

Reset to empty array.

SecurityApiKey
Request
path Parameters
reg
required
string

The name of a virtual register. May not be empty, contain commas (,), and may not consist entirely of digits. Virtual register names may contain a single dot (.) between a prefix and a suffix. The prefix is called the view name.

Responses
200

Normal response.

401

Unauthorized response.

delete/config/register/virtual/{reg}/value
Request samples
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}