Skip to main content

Modbus/TCP

modbus_tcp/config

Modbus/TCP server configuration

Example
# $HOST e.g. warp-AbCd

Read

curl http://$HOST/modbus_tcp/config
{ "enable": true, "port": 502, "table": 0 }

Write

curl http://$HOST/modbus_tcp/config -d '{ "enable": true, "port": 502, "table": 0 }'
NameDescription
enable
bool

Indicates whether the Modbus/TCP server is active. For control functionality in addition to state readout, evse/modbus_tcp_enabled must also be true.

port
int

Port on which the Modbus/TCP server listens for incoming connections. Typically 502.

table
int

Register table used by the Modbus/TCP server.

  • 0 - WARP Charger register table
  • 1 - Register table compatible with Bender CC612/613
  • 2 - Register table compatible with Keba C-Series
send_illegal_data_address
bool

Indicates whether the Modbus/TCP server sends IllegalDataAddress errors when unknown registers are read

  • true - The server responds with an IllegalDataAddress error when an unknown register is read.
  • false - The server responds with value 0 when an unknown register is read.