Fires on a call of the fail method.
Fires on a call of the success method.
Modbus function code
This function will give you the response packet bytes that will be sent on the emitting server. Before calling this function, the success
or fail
method must be called in order to set the response.
If RTU, unitId is equivalent to slaveId
Set a failure on this command to return an exception response to the emitting server.
The reason for the failure
Set success on this command to return a valid response to the emitting server.
Boolean coil data, starting at coilStartAddress
, of length numberOfCoils
.
Generated using TypeDoc
Fires on either success or failure, with the response bytes. Mainly used by the server to send a response.