@AndreaS73
Thank you for the comment.
Yes, the new version of esp-modbus v2.0.1 has been released and this has been announced
https://github.com/espressif/esp-modbus/discussions/86. Please use the links to the documentation and examples from the discussion link above.
The official examples in esp-idf are still valid and use the esp-idf v1.0.17 (can be compiled correctly without changes) means your legacy project code based on the esp-modbus v1 and
https://github.com/espressif/esp-idf/tr ... ols/modbus can still work without changes. These are kept for now in esp-idf during transition period. These examples will be removed from esp-idf on next stable release and the examples from esp-modbus v2
https://github.com/espressif/esp-modbus ... n/examples will become actual. Please take a look to the changes in the examples folder to find the important differences between these versions (the changes are minimal). The API are very similar to esp-modbus v1, but the most important changes are in the signatures of the functions which now include the instance address as a first parameter as described in the documentation
https://docs.espressif.com/projects/esp ... us-library.
The version of esp-modbus v2 is the recommended version for future projects and will include the latest updates.