writeMultipleCoils abstract method
Write multiple coils (FC 15).
Forces each coil in a sequence to either ON or OFF.
Parameters:
slaveId: The slave device ID (0-247, 0 for broadcast)address: Starting address of coilsquantity: Number of coils to write (1-1968)value: Byte array with coil values (bit-packed)
Example:
final values = Uint8List.fromList([0xFF, 0x00]); // First 8 ON, next 8 OFF
await client.writeMultipleCoils(1, 0, 16, values);
Implementation
Future<void> writeMultipleCoils(
int slaveId, int address, int quantity, Uint8List value);