<< modbus_getFloat modbus modbus_getTimeout >>

modbus >> modbus > modbus_getHeaderLength

modbus_getHeaderLength

retrieve Modbus connection header length.

Calling Sequence

res = modbus_getHeaderLength(mbc)

Arguments

mbc

The modbus connection created with modbus_newTcp or modbus_newRtu

res

the length of Modbus message header.

Description

modbus_get_header_length retrieve Modbus connection header length.

Examples

mbc = modbus_newTcp("127.0.0.1", 502);
modbus_getHeaderLength(mbc)
modbus_free(mbc);

See Also


Report an issue
<< modbus_getFloat modbus modbus_getTimeout >>