espressif / esp-modbus

ESP-Modbus - the officially suppported library for Modbus protocol (serial RS485 + TCP over WiFi or Ethernet).
Apache License 2.0
117 stars 55 forks source link

Change the modbusTCP slave port number (IDFGH-13995) #81

Open iamugly opened 2 weeks ago

iamugly commented 2 weeks ago

Checklist

Feature description

I would like to provide a way to modify the modbusTCP port number

Use cases

Some scenarios may need to be modified

Alternatives

No response

Additional context

No response

alisitsyn commented 2 weeks ago

@iamugly,

The slave Modbus port is configurable through the kconfig value in stack version v1.0.x. For the stack v2.0.0-beta, the TCP port is configurable independently in the slave configuration structure for each instance of master and slave.

alisitsyn commented 2 weeks ago

@iamugly,

Does this solve the issue you described? Could you provide some feedback?