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

A scale 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 scale is the value defined here and offset is the value defined for member offset.

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

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}/scale
Request samples
Response samples
application/json
{
  • "result": 0.1,
  • "error": "Error message (present if an error occurred)."
}