adapnex::drivers::modbus::ModbusMaster::WriteMultipleCoils

Writes contiguous coils on a slave device using function code 0x0F from an iterator range.

Synopsis

Declared in <adapnex/drivers/modbus.h>

Result
WriteMultipleCoils(
    uint8_t slave_id,
    uint16_t address,
    std::vector<bool>::iterator const& begin,
    std::vector<bool>::iterator const& end);

Return Value

Result code indicating success or error.

Parameters

Name

Description

slave_id

The slave device address.

address

The starting coil address to write.

begin

The beginning of the source range.

end

The end of the source range.

Created with MrDocs