A set of options. The meter currently supports the following options:
default-modbus-addr
: The Modbus unit-number to use by
default. This must be a decimal string. For example: 1
.
default-serial-params
: The default serial parameters to use
when the remote device is connected via a serial port
(Modbus/RTU). This must be a string. For example: 9600/8n1
for 9600 baud, 8 databits, no parity, 1 stop bit.
default-tcp-port
: The default TCP port number to use when
the remote device is connected via Modbus/TCP. This must be a
decimal string. For example: 6001
.
Normal response.
Unauthorized response.
{- "result": {
- "default-modbus-addr": "2",
- "default-serial-params": "9600/8n1"
}, - "error": "Error message (present if an error occurred)."
}
Normal response.
Unauthorized response.
{- "default-modbus-addr": "2",
- "default-serial-params": "9600/8n1"
}
{- "status": "OK",
- "error": "Error message (present if an error occurred)."
}
Normal response.
Unauthorized response.
{- "default-modbus-addr": "2",
- "default-serial-params": "9600/8n1"
}
{- "status": "OK",
- "error": "Error message (present if an error occurred)."
}
Delete all options.
Normal response.
Unauthorized response.
{- "status": "OK",
- "error": "Error message (present if an error occurred)."
}