Arduino HTTPClient 不工作

发布于 2024-12-14 14:14:34 字数 534 浏览 1 评论 0原文

我有一个带有以太网扩展板的 Arduino。

我有 httpclient 库,并且我正在尝试运行 PachubeClient 示例。

当我编译时,它给了我很多错误:

PachubeClient.cpp:25:25: error: Credentials.h: No such file or directory
PachubeClient.cpp: In function 'void setup()':
PachubeClient:47: error: 'ssid' was not declared in this scope
PachubeClient:47: error: 'passphrase' was not declared in this scope
PachubeClient:55: error: a function-definition is not allowed here before '{' token
PachubeClient:95: error: expected `}' at end of input

为什么?

I have an Arduino with an Ethernet shield.

I have the httpclient library, and I am trying to run the PachubeClient example.

When I compile, it gives me many errors:

PachubeClient.cpp:25:25: error: Credentials.h: No such file or directory
PachubeClient.cpp: In function 'void setup()':
PachubeClient:47: error: 'ssid' was not declared in this scope
PachubeClient:47: error: 'passphrase' was not declared in this scope
PachubeClient:55: error: a function-definition is not allowed here before '{' token
PachubeClient:95: error: expected `}' at end of input

Why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁对谁错谁最难过 2024-12-21 14:14:34

我根本没有使用过 Arduino 开发环境,但该错误消息意味着您要么缺少 Credentials.h 文件,要么编译器不知道在哪里找到它。验证该文件是否存在,然后检查编译器设置以确保将其传递给头文件的路径。

I haven't played around with the Arduino development environment at all but that error message means you're either missing the Credentials.h file or the compiler doesn't know where to find it. Verify that the file exists and then check your compiler settings to make sure that you're passing it the path to the header files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文