ESP-IDF libmodbus compatibility
Posted: 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:
How it can be fixed or maybe another esp32-friendly lib is present?
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