ESP-IDF libmodbus compatibility

playmean
Posts: 0
Joined: Wed Oct 11, 2017 11:18 am

ESP-IDF libmodbus compatibility

Postby playmean » Wed Oct 11, 2017 11:27 am

Hello, I tried to add libmodbus as component to ESP-IDF environment, but compilation throws me this errors:

Code: Select all

$ make all
CC build/modbus/modbus-tcp.o
C:/msys32/opt/esp/esp-idf/components/modbus/modbus-tcp.c:31:24: fatal error: sys/ioctl.h: No such file or directory
compilation terminated.
make[1]: *** [/opt/esp/esp-idf/make/component_wrapper.mk:243: modbus-tcp.o] Error 1
make: *** [C:/msys32/opt/esp/esp-idf/make/project.mk:421: component-modbus-build] Error 2


How it can be fixed or maybe another esp32-friendly lib is present?

shamsul
Posts: 4
Joined: Tue Jul 25, 2017 6:11 pm

Re: ESP-IDF libmodbus compatibility

Postby shamsul » Wed Nov 08, 2017 5:42 pm

Hello Playmean,
Did you have a success with libmodbus? I'm looking for a Modbus library that people have successfully used with esp32.
Please share your experience.
Thanks in advance.

Who is online

Users browsing this forum: No registered users and 5 guests