Function
Releases the libmodbus structure.
Format
modbus_free( 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
Releases the libmodbus structure.
Example
Releases the structure specified by ctx.
VB.NET |
Dim ctx As IntPtr modbus_free(ctx)
|
C, C++ |
modbus_t *ctx; modbus_free(ctx);
|
C# |
IntPtr ctx; modbus.Free(ctx);
|
Python |
ctx = ctypes.POINTER(modbus_t) modbus.modbus_free(ctx)
|