我有Arduino MKR1000(零模块),并且按照此存储库构建CMake环境:https://github.com/maxbader/Arduino-CMake-Template
由于其他库,我必须使用Clion IDE而不是Arduino IDE,然后我将WiFi101模块添加到Arduino库:https://github.com/arduino-libraries/WiFi101
我的问题是我想在示例代码中添加WiFi101模块,以将wifi与我的Arduino连接。
我设法添加了库,并检查了Arduino IDE的详细版本。唯一的不同是Arduino IDE添加了WiFi模块类的编译版本,例如:
“ / tmp / arduino_build_148477 / libraries / WiFi101-master / WiFi.cpp.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/WiFiClient.cpp.o” “ /tmp/arduino_build_148477/libraries/WiFi101master/WiFiMDNSResponder.cpp.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/WiFiSSLClient.cpp.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/WiFiServer.cpp.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/WiFiUdp.cpp.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/bsp/source/nm_bsp_arduino.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/bsp/source/nm_bsp_arduino_avr.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/bus_wrapper/source/nm_bus_wrapper_samd21.cpp.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/common/source/nm_common.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/m2m_ate_mode.c.o”“ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/m2m_crypto.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/m2m_hif.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/m2m_ota.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/m2m_periph.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/m2m_ssl.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/m2m_wifi.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/nmasic.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/nmbus.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/nmdrv.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/nmi2c.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/nmspi.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/driver/source/nmuart.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/socket/source/socket.c.o” “ /tmp/arduino_build_148477/libraries/WiFi101-master/spi_flash/source/spi_flash.c.o”“ /tmp/arduino_build_148477/libraries/WiFi101-master/utility/WiFiSocket.cpp.o” “ /tmp/arduino_build_148477/core/variant.cpp.o”
我可以将这些库添加到CMake吗?
或者还有其他将CMake与Arduino MKR1000结合使用的方法吗?
感谢您的帮助。