Function
Flushes unsent data. The flushed data will be discarded.
Format
modbus_flush( modbus_t *'ctx' );
Parameters
ctx [ VB.NET: IntPtr ] [ C, C++: modbus_t * ] [ C#: IntPtr ] [ Python: ctypes.POINTER(modbus_t) ]
Specify the pointer to the libmodbus structure.
Return values
None
Remarks
Flushes unsent data. The flushed data will be discarded.
Example
Flushes the unsent data of the structure specified by ctx.
VB.NET |
Dim ret As Integer Dim ctx As IntPtr ret = modbus_flush(ctx)
|
C, C++ |
int ret; modbus_t *ctx; ret = modbus_flush(ctx);
|
C# |
int ret; IntPtr ctx; ret = modbus.Flush(ctx);
|
Python |
ret = ctypes.c_int ctx = ctypes.POINTER(modbus_t) ret = modbus.modbus_flush(ctx)
|