不能使用微COAP库的Arduino

不能使用微COAP库的Arduino

本文介绍了不能使用微COAP库的Arduino的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让微COAP librarby( https://github.com/1248/microcoap
在我的Arduino的工作。当我尝试编译它在Arduino的IDE,它将报告< SYS / socket.h中> 主posix.c依赖无法找到。

I am trying to get the micro-coap librarby (https://github.com/1248/microcoap)to work on my arduino. When I try to compile it in the Arduino IDE, it reports that <sys/socket.h> dependency in main-posix.c can not be found.

有关问题的搜索是没有帮助的,除了一些普通的C ++的答案被暗示没有 SYS / socket.h中在Windows上。但是,这不应该有任何与Arduino的吧?

Searches for the problem were not helpful, except for some general C++ answer that was hinting that there is no sys/socket.h on Windows. But this should not have anything to do with Arduino right?

我看着以太网库Arduino的,有一个 socket.h中但它不是在SYS目录。

I looked at the ethernet library for arduino and there is a socket.h but it is not in a sys directory.

希望你能帮助

推荐答案

有人建议简单地把文件从Arduino的路径/删除它和工作。正如斯特凡张贴在他的答案,它是用来建立在Unix / Linux库中,并没有对Arduino的相关性。

Someone suggested simply taking the file out of the arduino path / deleting it and that worked. As Stefan posted in his answer, it is used to build the library on unix/linux and has no relevance for arduino.

这篇关于不能使用微COAP库的Arduino的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!