问题描述
通过usb连接自建bylnk服务器
从cmd的log中可以确定应该是连接上服务器了
不过在手机客户端上主板还是处于未上线状态(可以排除连错服务器的情况)
请问各位大神吗,这种情况该如何处理?
补充信息
blynk库使用的是ardiuno内在线安装的Blynk_For_Chinese
使用原版库会无法通过编译
当前截图
目前的代码
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT DebugSerial
// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(2, 3); // RX, TX
#include <BlynkSimpleStream.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "WH65kYz8ycqJcGn44s3Q6MxlZov5oton";
void setup()
{
// Blynk will work through Serial
// Do not read or write this serial manually in your sketch
Serial.begin(9600);
Blynk.begin(Serial, auth);
}
void loop()
{
Blynk.run();
}
|