Open pedrohugo-psc opened 6 months ago
Thanks for reporting.
Thanks for reporting.
Hello, Alvin1Zhang,
What is the prediction for any response to assist me?
Hello @pedrohugo-psc,
The error ESP_ERR_INVALID_ARG means the argument is not supported. The UDP communication for the stack is not yet supported. In order to communicate over UDP you need to update the stack code on your side. Let me know if you need more information on how to accomplish this. I also see that you use IDF v4.4, I would recommend to use the esp-modbus latest version in your project. You need to add the line set(EXCLUDE_COMPONENTS freemodbus)
to your CMakeLists.txt file as described in the readme.md file.
Answers checklist.
IDF version.
v4.4.4
Espressif SoC revision.
ESP32-32D
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Devkit_v4
Power Supply used.
USB
What is the expected behavior?
I want to connect ESP32-32D on another device via ModBus UDP
What is the actual behavior?
I receive this error when I try to set mb_mode_type_t to MB_MODE_UDP: ESP_ERR_INVALID_ARG
Steps to reproduce.
Debug Logs.
More Information.
No response