Nfrax Docs logoNfrax Docs

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

Nfrax Docs logoNfrax Docs
Start HereWhat's New
GitHub
robo-infra / API Reference

ModbusTCP

from robo_infra.protocols import ModbusTCP
View source
robo_infra.protocols
Extends:ModbusClient

Modbus TCP client over TCP/IP connection.

Constructor
ModbusTCP(host: str, port: int = 502, timeout: float = 1.0, name: str = 'modbus-tcp') -> None
ParameterTypeDefaultDescription
hostrequiredstr—Server hostname or IP.
portint502TCP port.
timeoutfloat1.0Connection and read timeout.
namestr'modbus-tcp'Client name.

Methods

On This Page

Constructorcloseopenread_coilsread_discrete_inputsread_holding_registersread_input_registerswrite_coilwrite_coilswrite_registerwrite_registers