Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Add ModBus handler for all Modbus plugins #4925

Open
8 tasks
TD-er opened this issue Dec 28, 2023 · 0 comments
Open
8 tasks

[FR] Add ModBus handler for all Modbus plugins #4925

TD-er opened this issue Dec 28, 2023 · 0 comments
Labels
Type: Feature Request Add a completely new feature (e.g. controller/plugin)

Comments

@TD-er
Copy link
Member

TD-er commented Dec 28, 2023

Use emelianov / modbus-esp8266 library:
https://github.com/emelianov/modbus-esp8266

This library allows for queueing requests with callback functions.
For callback example, see: emelianov/modbus-esp8266#165

ToDo:

  • Add ModbusHandler which makes several instances of this modbus object based on used (serial) port
  • Make instances of modbus object use something like smart pointer to make sure it gets destructed when the last user (task) exits
  • Add separate task for ModbusHandler on RTOS to make it read completely async.
  • Add modbus sensor device type DEVICE_TYPE_MODBUS_RTU
  • Add queue mechanism with callback
  • Add extra reg reads for use in loading web form which may need to be pre-loaded or periodically read and cached.
  • Mark which regs should be read only once (e.g. serial nr)
  • Check boxes fixed in this issue: [Cleanup] Get rid of 'blocking' code like delay() #4103
@TD-er TD-er added the Type: Feature Request Add a completely new feature (e.g. controller/plugin) label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Request Add a completely new feature (e.g. controller/plugin)
Projects
None yet
Development

No branches or pull requests

1 participant