|
基本信息
[√] 这个问题满足提问指南
[x] 我阅读了开发文档
[√] 我使用了最新的库及APP进行测试,但是问题仍然存在
[√] 我搜索过类似问题的解决方法但是仍然无法解决
[x] 有设备端的LOG信息
[√] 有编译报错信息
[√] 我已填写基本信息
设备信息
硬件: [ESP-12]
接入方式: [WIFI]
package版本: [esp8266-arduino-2.5.0dev]
blinker库版本: [arduino 0.3.1]
开发环境: [Arduino]
操作系统: [Windows]
IDE 中的设置
Module: [Nodemcu]
Flash Mode: [dio]
Flash Size: [4MB]
lwip Variant: [v2 Lower Memory]
Reset Method: [nodemcu]
Flash Frequency: [40Mhz]
CPU Frequency: [80Mhz]
Upload Using: [SERIAL]
Upload Speed: [115200] (serial upload only)
问题描述
[59]
__ __ __
/\ \ /\ \ __ /\ \ v0.3.1
\ \ \___ \ \ \ /\_\ ___\ \ \/'\ __ _ __
\ \ '__`\\ \ \ \/\ \ /' _ `\ \ , < /'__`\/\`'__\
\ \ \L\ \\ \ \_\ \ \/\ \/\ \ \ \\`\ /\ __/\ \ \./
\ \_,__/ \ \__\\ \_\ \_\ \_\ \_\ \_\ \____\\ \_\
\/___/ \/__/ \/_/\/_/\/_/\/_/\/_/\/____/ \/_/
To better use blinker with your IoT project!
Download latest blinker library here!
=> https://github.com/blinker-iot/blinker-library
[461] Connecting to TP-LINK ajkljie
[501] ESP8266_MQTT initialized...
[536]
===========================================================
================== Blinker Timer loaded! ==================
Warning!EEPROM address 1536-2431 is used for Blinker Timer!
============= DON'T USE THESE EEPROM ADDRESS! =============
===========================================================
代码
在这里填写您出现问题的最小示例代码
#define BLINKER_WIFI
#include <Blinker.h>
#include<EEPROM.h>
char auth[] = "0e3*********";
char ssid[] = "*********";
char pswd[] = "*********";//实际此处有填写具体的key、WiFi接入名称及密码
// 新建组件对象
BlinkerButton Button1("btn-abc");
BlinkerNumber Number1("num-abc");
int counter = 0;
// 按下按键即会执行该函数
void button1_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
digitalWrite(D5, HIGH);
digitalWrite(D5, LOW);
}
// 如果未绑定的组件被触发,则会执行其中内容
void dataRead(const String & data)
{
BLINKER_LOG("Blinker readString: ", data);
counter++;
Number1.print(counter);
}
void setup()
{
// 初始化串口
Serial.begin(9600);
BLINKER_DEBUG.stream(Serial);
// 初始化有LED的IO
pinMode(D5, OUTPUT);
digitalWrite(D5, LOW);
// 初始化blinker
Blinker.begin(auth, ssid, pswd);
Button1.attach(button1_callback);
}
void loop() {
Blinker.run();
}
LOG信息
无
编译信息
IDE未报错,是在进行硬件rst的时候出现的,并且在blinker的安卓客户端中显示该硬件离线
|
|