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

The type of the register value. This may be one of the following:

  • bit: One-bit value (a coil, in Modbus terminology).
  • s16: Signed 16-bit integer.
  • u16: Unsigned 16-bit integer.
  • s32: Signed 32-bit integer.
  • u32: Unsigned 32-bit integer.
  • s32l: Signed 32-bit integer, word-swapped.
  • u32l: Unsigned 32-bit integer, word-swapped.
  • s64: Signed 64-bit integer.
  • u64: Unsigned 64-bit integer.
  • float16: IEEE-754 half-precision float.
  • float16l: IEEE-754 half-precision floating point, little-endian (byte-swapped).
  • float: IEEE-754 single-precision float.
  • floatl: IEEE-754 single-precision float, word-swapped.
  • double: IEEE-754 double-precision float.

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

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