本人小白,esp8266用blinker连不上手机开的热点-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1785|回复: 2

[过期] 本人小白,esp8266用blinker连不上手机开的热点

[复制链接]
发表于 2020-12-29 19:01 | 显示全部楼层 |阅读模式
小白求助,使用esp12f连不上热点,看别人视频上好像直接编译上传就连上去了


ets Jan  8 2013,rst cause:2, boot mode3,6)

load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
[65]
[65]
__       __                __
/\ \     /\ \    __        /\ \              v0.3.5
\ \ \___ \ \ \  /\_\    ___\ \ \/'\      __   _ __   
\ \ '__`\\ \ \ \/\ \ /' _ `\ \ , <    /'__`\/\`'__\
  \ \ \L\ \\ \ \_\ \ \/\ \/\ \ \ \\`\ /\  __/\ \ \./
   \ \_,__/ \ \__\\ \_\ \_\ \_\ \_\ \_\ \____\\ \_\  
    \/___/   \/__/ \/_/\/_/\/_/\/_/\/_/\/____/ \/_/  
    To better use blinker with your IoT project!
    Download latest blinker library here!
    => https://github.com/blinker-iot/blinker-library

[98] _aliType:
[99] _duerType:
[101] _miType:
[102] _authKey: 1d4b3016d94a
[105] Connecting to creep
[110] ESP8266_MQTT initialized...
[110]
===========================================================
================== Blinker Timer loaded! ==================
Warning!EEPROM address 1536-2431 is used for Blinker Timer!
============= DON'T USE THESE EEPROM ADDRESS! =============
===========================================================

[139] countdown state: false
[140] _cdRunState: 0
[142] _totalTime: 0
[144] _runTime: 0
[145] _action:
[148] loop state: false
[149] _lpRunState: 0
[151] _times: 0
[152] _tri_times: 0
[154] _time1: 0
[156] _action1:
[157] _time2: 0
[159] _action2:
[160] _lpData: 0
[162] checkNum count: 1


代码(直接用blinker示例改的):
#define BLINKER_WIFI

#include <Blinker.h>

char auth[] = "1d4b3016d94a";
char ssid[] = "creep";
char pswd[] = "2393863647";

// 新建组件对象
BlinkerButton Button1("btn-gm6");
BlinkerNumber Number1("num-bmt");

int counter = 0;

int LED1   = 13;

// 按下按键即会执行该函数
void button1_callback(const String & state)
{
    BLINKER_LOG("get button state: ", state);
    digitalWrite(LED1, !digitalRead(LED1));
}

// 如果未绑定的组件被触发,则会执行其中内容
void dataRead(const String & data)
{
    BLINKER_LOG("Blinker readString: ", data);
    counter++;
    Number1.print(counter);
}

void setup()
{
    // 初始化串口
    Serial.begin(115200);
    BLINKER_DEBUG.stream(Serial);
    BLINKER_DEBUG.debugAll();

    // 初始化有LED的IO
    pinMode(LED1, OUTPUT);
    digitalWrite(LED1, LOW);
    // 初始化blinker
    Blinker.begin(auth, ssid, pswd);
    Blinker.attachData(dataRead);

    Button1.attach(button1_callback);
}

void loop() {
    Blinker.run();
}


 楼主| 发表于 2020-12-30 09:36 | 显示全部楼层
问题已解决
发表于 2021-1-4 18:22 | 显示全部楼层
请问是怎么解决的?我也被连不上困扰。可以肯定设置都对,设备就是不能上线。谢谢。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 13:51 , Processed in 0.071047 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表