-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Modbus controller incorrectly set a read coil event as MB_EVENT_COILS_WR (IDFGH-951) #3289
Comments
Hi domoticalabs-dev, Thank you for reporting this. The change will be applied into current release and merged as soon as possible. -- |
Is there any plan to implement a TCP slave too on the future? It seems there is not in the library, so we've tried to implement a simple example of it, still we don't have enough resources to make it completely working and we don't have any plan of doing it in the future. |
Hi domoticalabs-dev, |
domoticalabs-dev, |
As you prefer, if you change your mind just ask me. I can also open a pull request if you need it and if it can help you. |
incorrect set of the MB_EVENT_COILS_WR event is changed while read coils in mbcontroller.c file added read/write handling for appropriate registers in freemodbus.c example file Closes #3289
uuid16 is Missing first 4 characters. uuid is Missing last 2 characters.
incorrect set of the MB_EVENT_COILS_WR event is changed while read coils in mbcontroller.c file added read/write handling for appropriate registers in freemodbus.c example file Closes espressif#3289
incorrect set of the MB_EVENT_COILS_WR event is changed while read coils in mbcontroller.c file added read/write handling for appropriate registers in freemodbus.c example file Closes espressif/esp-idf#3289 * Original commit: espressif/esp-idf@eebbced
Into linked code line, and the next one (426), the event is set in a wrong way since in this case the variable eMode is equal to MB_REG_READ.
esp-idf/components/freemodbus/modbus_controller/mbcontroller.c
Line 425 in c064e00
The proposed solution is to change, in both lines, the value MB_EVENT_COILS_WR in MB_EVENT_COILS_RD.
The text was updated successfully, but these errors were encountered: