<< modbus_readRegsFloat modbus modbus_setSlave >>

modbus >> modbus > modbus_setDebug

modbus_setDebug

set debug flag of the Modbus connection

Calling Sequence

modbus_setDebug(mbc, debugValue)

Arguments

mbc

The Modbus connection created with modbus_newTcp or modbus_newRtu.

debugValue

the debug status. Must be %t or %f.

Description

This function will set the debug flag of Modbus connection.

When the boolean value is set to TRUE, many verbose messages are displayed on stdout and stderr.

Examples

mbc = modbus_newTcp("127.0.0.1", 502)
modbus_setDebug(mbc, %t)
modbus_free(mbc)

Report an issue
<< modbus_readRegsFloat modbus modbus_setSlave >>