/sys/modbus/client/map/{name}/reg/{idx}/offset

An offset value that is used to convert the Modbus register value to a value in the specified physical unit. Specifically, when the Modbus value of the register is reg, then corresponding physical value phys is calculated as:

phys = (reg + offset) * scale

where offset is the value defined here and scale is the value defined for member scale.

Get /sys/modbus/client/map/{name}/reg/{idx}/offset

SecurityApiKey
Request
path Parameters
name
required
string

The name of a system Modbus map (read-only).

Example: egauge_prm3
idx
required
string

The index of a Modbus map register.

Responses
200

Normal response.

401

Unauthorized response.

get/sys/modbus/client/map/{name}/reg/{idx}/offset
Request samples
Response samples
application/json
{
  • "result": 0,
  • "error": "Error message (present if an error occurred)."
}