在下面的 Blynk 程序中,他们使用了以下行:
char auth[] = "76aeba5832304e10917b4e1748c34039";
“身份验证令牌”是什么意思?为什么 Blynk 需要正常运行?
程序
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
int ledPin = 13;
int buttonPin = 4;
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "76aeba5832304e10917b4e1748c34039";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Maximus";
char pass[] = "Acc1234$$";
void setup()
{
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
Blynk.begin("76aeba5832304e10917b4e1748c34039", "Maximus", "Acc1234$$");
}