ModbusType is an enum which defines the following constants that Modern Modbus API supports:

TCP(1), UDP(2), RTU_OVER_TCP(3), RTU_OVER_UDP(4), ASCII_OVER_TCP(5), ASCII_OVER_UDP(6)

applications can connect to a Modbus device using one of these options.

TCP – device supports Modbus TCP in a Wired/WiFi network

UDP – device supports Modbus UDP in a Wired/WiFi network

RTU_OVER_TCP  –  device  supports  Modbus  RTU,  and  it  is
reachable  via  a  EthernetToRS485 converter. Use this option if the
converter supports TCP

RTU_OVER_UDP  –  device  supports  Modbus  RTU,  and  it  is
reachable  via  a  EthernetToRS485 converter. Use this option if the
converter supports UDP

ASCII_OVER_TCP  –  device  supports  Modbus  ASCII,  and  it  is
reachable  via  a  EthernetToRS485 converter. Use this option if the
converter supports TCP

ASCII_OVER_UDP – device supports Modbus ASCII, and it is reachable
via a EthernetToRS485 converter. Use this option if the converter
supports UDP

Use one of these constants while creating instance of ModbusSocketParameters

ModbusType is an enum which defines the following constants that Modern Modbus API supports:

TCP(1), UDP(2), RTU_OVER_TCP(3), RTU_OVER_UDP(4), ASCII_OVER_TCP(5), ASCII_OVER_UDP(6)

applications can connect to a Modbus device using one of these options.

TCP – device supports Modbus TCP in a Wired/WiFi network

UDP – device supports Modbus UDP in a Wired/WiFi network

RTU_OVER_TCP  –  device  supports  Modbus  RTU,  and  it  is
reachable  via  a  EthernetToRS485 converter. Use this option if the
converter supports TCP

RTU_OVER_UDP  –  device  supports  Modbus  RTU,  and  it  is
reachable  via  a  EthernetToRS485 converter. Use this option if the
converter supports UDP

ASCII_OVER_TCP  –  device  supports  Modbus  ASCII,  and  it  is
reachable  via  a  EthernetToRS485 converter. Use this option if the
converter supports TCP

ASCII_OVER_UDP – device supports Modbus ASCII, and it is reachable
via a EthernetToRS485 converter. Use this option if the converter
supports UDP

Use one of these constants while creating instance of ModbusSocketParameters