IPC@CHIP Modbus library – API Documentation

Header image

Main page


int mbtcp_srv_loop_stop ( MbHandle  handle,
u32  maxWaitMs 
)

This function signals a stop command.
If a corresponding Modbus server loop (mbtcp_srv_loop() running at a task) exists, this loop exits.
The function waits maxWaitMs milliseconds for an exit acknowledge from mbtcp_srv_loop().
It can be used to stop the Modbus communication.
A new call to mbtcp_srv_loop() initiates/starts the server again.

Parameters:
[in] handle,: Handle returned by mbtcp_srv_init()
[in] maxWaitMs,: The function waits maxWaitMs milliseconds for an exit acknowledge from the corresponding mbtcp_srv_loop(). If maxWaitMs is 0, it will wait forever.
Returns:

MB_TIMEOUT: Timeout, while waiting for exit signal of the corresponding mbRTU_slv_loop().
MB_NO_ERROR: Success





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Mar 9 18:00:33 2017 by Doxygen 1.6.1