7 modbus_write_bits - write many bits
12 *int modbus_write_bits(modbus_t *'ctx', int 'addr', int 'nb', const uint8_t *'src');*
17 The *modbus_write_bits()* function shall write the status of the _nb_ bits
18 (coils) from _src_ at the address _addr_ of the remote device. The
19 _src_ array must contains bytes set to `TRUE` or `FALSE`.
21 The function uses the Modbus function code 0x0F (force multiple coils).
26 The function shall return the number of written bits if successful. Otherwise it
27 shall return -1 and set errno.
38 linkmb:modbus_read_bits[3]
39 linkmb:modbus_write_bit[3]
44 The libmodbus documentation was written by Stéphane Raimbault
45 <stephane.raimbault@gmail.com>