3

所以我今天得到了我的 Arduino Uno。对于一个项目,我希望能够通过 Wifi(通过 Blynk 应用程序)控制我的 Arduino 上的一些继电器。为此,我想将 ESP8266-01 用作 Wifi 防护罩。

我使用了本教程:https ://create.arduino.cc/projecthub/nolan-mathews/connect-to-blynk-using-esp8266-as-arduino-uno-wifi-shield-m1-46a453

唯一不同的是我用的是Win10。这是我得到的:

好的,第一个问题是我无法按照教程中所述刷新 ESP 的固件(从 Sunfounder 获得)。下载最新固件并用 ESP8266Flasher 刷机。

其他问题是当我尝试编译第一个教程中的代码时,我总是得到错误:

C:\Users\Chris\Documents\Arduino\libraries\Blynk\examples\Boards_WiFi\ESP8266_Shield\ESP8266_Shield.ino:5:21: fatal error: ESP8266.h: No such file or directory

如前所述,我已经安装了所有库。实在是想不出来要做的事情了。任何帮助将非常感激。来自柏林的问候,克里斯。要关闭我尝试上传到开发板的代码(Arduino Board 或通用 ESP8266 都不起作用)

//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial  // Comment this out to disable prints and    save space
#include <ESP8266.h>
#include <BlynkSimpleShieldEsp8266.h>
// Set ESP8266 Serial object
#define EspSerial Serial
ESP8266 wifi(EspSerial);
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "???";
void setup()
{
 Serial.begin(115200);  // Set console baud rate
 delay(10);
 EspSerial.begin(115200);  // Set ESP8266 baud rate
 delay(10);
 Blynk.begin(auth, wifi, "???",
"???");
}
void loop()
{
 Blynk.run();
}

这 ???我换了我的令牌和数据。

4

1 回答 1

3

尝试改变这个

#include <ESP8266.h>

对此

#include <ESP8266_Lib.h>

该文件在此提交中被重命名。

于 2017-02-09T17:59:32.737 回答