|
串口信息如下,望大神帮忙解决一下
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
modeIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:10080
load:0x40080400,len:5856
entry 0x400806a8
[29]
[29]
__ __ __
/\ \ /\ \ __ /\ \ v0.3.5
\ \ \___ \ \ \ /\_\ ___\ \ \/'\ __ _ __
\ \ '__`\\ \ \ \/\ \ /' _ `\ \ , < /'__`\/\`'__\
\ \ \L\ \\ \ \_\ \ \/\ \/\ \ \ \\`\ /\ __/\ \ \./
\ \_,__/ \ \__\\ \_\ \_\ \_\ \_\ \_\ \____\\ \_\
\/___/ \/__/ \/_/\/_/\/_/\/_/\/_/\/____/ \/_/
To better use blinker with your IoT project!
Download latest blinker library here!
=> https://github.com/blinker-iot/blinker-library
[63] _aliType:
[64] _duerType:
[66] _miType:
[67] _authKey: f6b5e7899a9e
[70] Connecting to CMCC-bS9Q
[195] ESP32_MQTT initialized...
[195]
===========================================================
================== Blinker Timer loaded! ==================
Warning!EEPROM address 1536-2431 is used for Blinker Timer!
============= DON'T USE THESE EEPROM ADDRESS! =============
===========================================================
[239] countdown state: false
[239] _cdRunState: 0
[239] _totalTime: 0
[239] _runTime: 0
[239] _action:
[252] loop state: false
[252] _lpRunState: 0
[252] _times: 0
[252] _tri_times: 0
[252] _time1: 0
[252] _action1:
[252] _time2: 0
[253] _action2:
[255] _lpData: 0
[256] checkNum count: 1
[768] WiFi Connected.
[768] IP Address:
[768] 192.168.1.5
[778] HTTPS begin: https://iot.diandeng.tech/api/v1/user/device/diy/auth?authKey=f6b5e7899a9e&version=0.1.0&protocol=mqtts
sendRequest code=-7
[2071] [HTTP] GET... failed, error: no HTTP server
[2071]
[2071] reply was:
[2071] ==============================
[2071]
[2072] ==============================
[2075] ERROR: Maybe you have put in the wrong AuthKey!
[2080] ERROR: Or maybe your request is too frequently!
[2084] ERROR: Or maybe your network is disconnected!
程序如下
#define BLINKER_WIFI
#include <Blinker.h>
#define LED_BUILTIN 2
char auth[] = "f6b5e7899a9e";
char ssid[] = "CMCC-bS9Q";
char pswd[] = "ezn39S5S";
// 新建组件对象
BlinkerButton Button1("LED");
// 按下按键即会执行该函数
void button1_callback(const String & state) {
BLINKER_LOG("get button state: ", state);
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
Blinker.vibrate();
}
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);
Button1.attach(button1_callback);
}
void loop() {
Blinker.run();
}
|
|