Interface BrickletRS485.ModbusMasterWriteSingleCoilResponseListener

  • All Superinterfaces:
    DeviceListener, java.util.EventListener, TinkerforgeListener
    Enclosing class:
    BrickletRS485

    public static interface BrickletRS485.ModbusMasterWriteSingleCoilResponseListener
    extends DeviceListener
    This listener is called only in Modbus master mode when the master receives a valid response of a request to write a single coil. The parameters are request ID of the request and exception code of the response. Any non-zero exception code indicates a problem. If the exception code is greater than 0 then the number represents a Modbus exception code. If it is less than 0 then it represents other errors. For example, -1 indicates that the request timed out or that the master did not receive any valid response of the request within the master request timeout period as set by BrickletRS485.setModbusConfiguration(int, long).
    • Method Detail

      • modbusMasterWriteSingleCoilResponse

        void modbusMasterWriteSingleCoilResponse​(int requestID,
                                                 int exceptionCode)