启动后不联网怎么办
本帖最后由 af11050 于 2019-11-8 21:12 编辑Blinker例程的HelloWifi工程,编译后,app连不上一直显示离线, 下面是debugAll信息
21:08:58.851 ->
21:08:58.851 -> blinker v0.3.3
21:08:58.851 -> To better use blinker with your IoT project!
21:08:58.851 -> Download latest blinker library here!
21:08:58.851 -> => https://github.com/blinker-iot/blinker-library
21:08:58.898 ->
21:08:58.992 -> print: AT
21:08:58.992 -> Proto print...
21:08:58.992 -> Freeheap: 804
21:08:58.992 -> Response: AT
21:08:58.992 -> Success...
21:08:58.992 -> Freeheap: 942
21:08:59.976 -> print: AT
21:08:59.976 -> Proto print...
21:08:59.976 -> Freeheap: 804
21:08:59.976 -> Response: AT
21:08:59.976 -> Success...
21:08:59.976 -> Freeheap: 942
21:09:00.960 -> print: AT
21:09:00.960 -> Proto print...
21:09:01.007 -> Freeheap: 804
21:09:01.007 -> Response: AT
21:09:01.007 -> Success...
21:09:01.007 -> Freeheap: 942
21:09:01.991 -> print: AT
21:09:01.991 -> Proto print...
21:09:01.991 -> Freeheap: 804
21:09:01.991 -> Response: AT
21:09:01.991 -> Success...
21:09:01.991 -> Freeheap: 942
21:09:02.975 -> print: AT
21:09:02.975 -> Proto print...
21:09:02.975 -> Freeheap: 804
21:09:02.975 -> Response: AT
21:09:02.975 -> Success...
21:09:02.975 -> Freeheap: 942
21:09:03.959 -> print: AT
21:09:03.959 -> Proto print...
21:09:04.006 -> Freeheap: 804
21:09:04.006 -> Response: AT
21:09:04.006 -> Success...
21:09:04.006 -> Freeheap: 942
21:09:04.990 -> print: AT
21:09:04.990 -> Proto print...
21:09:04.990 -> Freeheap: 804
21:09:04.990 -> Response: AT
21:09:04.990 -> Success...
21:09:04.990 -> Freeheap: 942
21:09:05.974 -> print: AT
21:09:05.974 -> Proto print...
21:09:05.974 -> Freeheap: 804
21:09:05.974 -> Response: AT
21:09:05.974 -> Success...
void setup()
{
// 初始化串口
Serial.begin(115200);
BLINKER_DEBUG.stream(Serial);
BLINKER_DEBUG.debugAll();
// 初始化有LED的IO
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
// 初始化blinker
Blinker.begin(auth, ssid, pswd);
Blinker.attachData(dataRead);
Button1.attach(button1_callback);
}
不是完整的程序吧 coloz 发表于 2019-11-8 22:28
不是完整的程序吧
::L:L就是例程里的呀
// 新建组件对象
BlinkerButton Button1("btn-abc");
BlinkerNumber Number1("num-abc");
int counter = 0;
// 按下按键即会执行该函数
void button1_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
}
// 如果未绑定的组件被触发,则会执行其中内容
void dataRead(const String & data)
{
BLINKER_LOG("Blinker readString: ", data);
counter++;
Number1.print(counter);
}
void setup()
{
// 初始化串口
Serial.begin(115200);
BLINKER_DEBUG.stream(Serial);
// 初始化有LED的IO
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
// 初始化blinker
Blinker.begin(auth, ssid, pswd);
Blinker.attachData(dataRead);
Button1.attach(button1_callback);
}
void loop() {
Blinker.run();
} 你给UNO烧wifi的例程怎么连??? 例程改个密钥 路由器ssid和密码就可以连了 请按提问指南,完整详细的描述问题
https://www.arduino.cn/thread-83658-1-1.html
页:
[1]