Migration guide for ESP-Modbus
Posted: Mon Feb 10, 2025 5:21 am
After upgrading the idf dependencies, the ESP-Modbus component was updated as well (to v2.0.1~1) and now I get dozen of build errors in my code.
Of course that means the functions are changed.
Is there a migration guide that would simplify the adjustment of the code?
If I'm not wrong it seems the examples are still the old version and even the official documentation!
Example, I get this error:
but the "latest" https://docs.espressif.com/projects/esp ... nt_group_t is not updated yet:
This is odd. Where is the updated documentation?
Of course that means the functions are changed.
Is there a migration guide that would simplify the adjustment of the code?
If I'm not wrong it seems the examples are still the old version and even the official documentation!
Example, I get this error:
Exploring the source code I find the signature is:too few arguments to function 'mbc_slave_check_event'
Code: Select all
mb_event_group_t mbc_slave_check_event(void *ctx, mb_event_group_t group)
Code: Select all
mb_event_group_t mbc_slave_check_event(mb_event_group_t group)