Function
Retrieves the errono.
Format
errnum = modbus_read_errno( )
Parameters
None
Return values
errnum [ VB.NET: Integer ] [ C, C++: int ] [ C#: int ] [ Python: ctypes.c_int ]
If the function succeeds, errno is returned.
Remarks
Errno can be retrieved.
Example
Retrieves the errono and stores the corresponding error content in ErrorString.
VB.NET |
Dim error_string As String errno = modbus_read_errno() error_string = modbus_strerror(errno)
|
C, C++ |
char error_string[256]; errno = modbus_read_errno(); error_string = modbus_strerror(errno);
|
C# |
string error_string; errno = modbus_read_errno(); error_string = modbus.StrError(errno);
|
Python |
err_str = ctypes.create_string_buffer(256) errno = modbus_read_errno(); err_str.value = modbus.modbus_strerror(errno)
|