ModbusMaster
v2.0.1
Arduino library for communicating with Modbus slaves over RS232/485 (via RTU protocol).
|
Functions | |
ModbusMaster::ModbusMaster () | |
Constructor. More... | |
void | ModbusMaster::begin (uint8_t, Stream &serial) |
Initialize class object. More... | |
ModbusMaster::ModbusMaster | ( | void | ) |
Constructor.
Creates class object; initialize it using ModbusMaster::begin().
void ModbusMaster::begin | ( | uint8_t | slave, |
Stream & | serial | ||
) |
Initialize class object.
Assigns the Modbus slave ID and serial port. Call once class has been instantiated, typically within setup().
slave | Modbus slave ID (1..255) |
&serial | reference to serial port object (Serial, Serial1, ... Serial3) |