Documentation

MbusSlaveServerserverLoop Method

Modbus slave server loop

Namespace:  FieldTalk.Modbus.Slave
Assembly:  FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntax
public int serverLoop()

Return Value

Type: Int32
BusProtocolErrors.FTALK_SUCCESS on success or error code. See BusProtocolErrors for possible error codes.
Remarks
This server loop must be called continuously. It must not be blocked. The server has to be started before calling the serverLoop() method. In most cases the server loop is executed in an infinite loop in its own thread:
while (notTerminated)
{
    result = mbusProtocol.serverLoop();
}
See Also