Skip to content

Initializing a Modbus Master uses CONFIG_FMB_TCP_PORT_DEFAULT instead of mb_communication_info_t config.tcp_opts.port (EPROT-21) #150

@ivobelitz

Description

@ivobelitz

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

During initialization of a Modbus Master, the port value set in .tcp_opts.port in the mb_communication_info_t struct is used.

Actual behavior (suspected bug)

The value of CONFIG_FMB_TCP_PORT_DEFAULT is used

Error logs or terminal output

Steps to reproduce the behavior

  1. Set CONFIG_FMB_TCP_PORT_DEFAULT to port X
  2. When initializing a Modbus master, set mb_communication_info_t.tcp_opts.port to port Y
  3. Open a TCP server on port X and observe that packets are arriving there

Project release version

v2.1.1

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

MacOS

Operating system version

Sequoia 15.6.1

Shell

ZSH

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions