Configuration

umodbus.conf is a global configuration object and is an instance of umodbus.config.Config. This instance can be used like this:

from umodbus import conf

conf.SIGNED_VALUES = True
class umodbus.config.Config[source]

Class to hold global configuration.

SIGNED_VALUES

Whether values are signed or not. Default is False.

This value can also be set using the environment variable UMODBUS_SIGNED_VALUES.