Skip to content

New communication method user-defined extension interface (EPROT-71) #176

Description

@wishinlife

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Described the feature in detail and justified the reason for the request.
  • Provided specific use cases and examples.

Feature description

I’m not sure whether esp-modbus has an interface that allows users to customize the implementation of other communication methods, such as Zigbee or SPI-to-UART. If the esp-modbus library has an interface, I feel that we users could implement it by writing a file similar to mbc_serial_master.c, but I haven’t looked closely at the logic inside. There are no actual hardware interface implementations for open, close, write, and read inside. It seems that to achieve what I want, I would need to implement a complete set of Modbus processing logic. Is there a way that we could just simply implement a few interfaces like open, close, write, and read and still be able to extend a new communication method?

Use cases

Zigbee gateway.

Alternatives

libmodbus.

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions