ESP8266 - Write Single Field

8 ビュー (過去 30 日間)
Rey Mat
Rey Mat 2021 年 5 月 21 日
編集済み: Vinod 2021 年 5 月 27 日
Hello
I used the example program to write data to ThingSpeak and I have the following compilation error
c:/users/name/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.text.setup+0xc): undefined reference to `ThingSpeak'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\nodemcuv2\firmware.elf] Error 1
Here my include files
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <secrets.h>
#include <ThingSpeak.h> // always include thingspeak header file after other header files and custom macros
I've searched on the web but I can't find a solution. If anyone can help me. Thank you in advance.

回答 (1 件)

Vinod
Vinod 2021 年 5 月 25 日
編集済み: Vinod 2021 年 5 月 27 日
You don't have the ThingSpeak library in your list of project dependencies in your PlatformIO.ini file. You need to add the ThingSpeak library like this:

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeRead Data from Channel についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by