不能为 arduino 使用 Micro-Coap 库 [英] Cant use Micro-Coap library for arduino

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

问题描述

我正在尝试获取 micro-coap 库 (https://github.com/1248/microcoap)在我的 arduino 上工作.当我尝试在 Arduino IDE 中编译它时,它报告在 main-posix.c 中找不到 依赖项.>

搜索问题没有帮助,除了一些暗示 Windows 上没有 sys/socket.h 的通用 C++ 答案.但这应该与 Arduino 没有任何关系吧?

我查看了 arduino 的以太网库,有一个 socket.h 但它不在 sys 目录中.

希望能帮到你

有人建议简单地将文件从 arduino 路径中取出/删除它,然后就行了.正如 Stefan 在他的回答中发布的那样,它用于在 unix/linux 上构建库,与 arduino 无关.

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.

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?

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

Hope you can help

解决方案

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.

这篇关于不能为 arduino 使用 Micro-Coap 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆