ArduinoModbus - modbusRTUServer.begin()

Description

Start the Modbus RTU server with the specified parameters.

Syntax

ModbusRTUServer.begin(id, baudrate);
ModbusRTUServer.begin(id, baudrate, config);

Parameters

  • id - (slave) id of the server baudrate - Baud rate to use for serial
  • config - Config to use for serial (see Serial.begin(…) for more info.) defaults to SERIAL_8N1 if not provided

Returns

1 on success, 0 on failure