Modbus Plugin - read every field separately #12071
Labels
area/modbus
feature request
Requests for new plugin and for new features to existing plugins
plugin/input
1. Request for new input plugins 2. Issues/PRs that are related to input plugins
Use Case
I'm trying to communicate with an external Modbus, and it fails to respond with multiple registers at once.
Every field I request is a UINT16 (2 bytes, 1 register).
Telegraf usually asks Modbus for multiple registers at once and then seems to split it into the fields I requested.
Because the Modbus I'm communicating with fails to respond with more than 1 register, every second field I request is 0.
Expected behavior
Be able to tell Telegraf to request every field individually and not combine reads of adjacent registers.
Actual behavior
Telegraf asks for multiple registers and splits them into the fields I requested, which breaks when the Modbus I'm communicating with fails to respond with more than 1 register.
Additional info
Telegraf 1.22.4
Yes, I have reported the bug to the third party whose Modbus is broken, but they said it won't be fixed soon, so a workaround in Telegraf would be nice :)
The text was updated successfully, but these errors were encountered: