您的platform.ini文件中的项目依赖项列表中没有thingspeak库。您需要像这样添加Thingspeak库:
ESP8266-写单字段
15次观看(最近30天)
显示较旧的评论
你好
我使用示例程序将数据写入ThingsPeak,并且有以下汇编错误
c:/users/name/.platformio/packages/toolchain-xtensa/bin/../ lib/gcc/gcc/xtensa-lx106-elf/4.8.2 /../../../../../../../../../../../../../../-elf/bin/ld.exe:.pio \ build \ nodemcuv2 \ src \ src \ main.cpp.o :(。text.setup+0xc):未定义对“ Thingspeak'”
collect2.exe:错误:LD返回1退出状态
*** [.pio \ build \ nodemcuv2 \ instarware.felf]错误1
这是我的文件
#include
#include
#include
#include //始终在其他标头文件和自定义宏之后包含thingspeak标头文件
我已经在网络上搜索了,但是找不到解决方案。如果有人可以帮助我。先感谢您。