blinker连接不了-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1490|回复: 9

[已解答] blinker连接不了

[复制链接]
发表于 2021-8-10 17:19 | 显示全部楼层 |阅读模式
平台是不是崩了,以前能上线的都不能上线了,新建的也上不了,arduino反馈,大神能否帮忙看一下
 楼主| 发表于 2021-8-10 17:22 | 显示全部楼层
[43199] Connected
[43200] Your IP is: 192.168.0.103
[45236] ERROR: Maybe you have put in the wrong AuthKey!
[45236] ERROR: Or maybe your request is too frequently!
[45236] ERROR: Or maybe your network is disconnected!
[54605] ERROR: Maybe you have put in the wrong AuthKey!
[54605] ERROR: Or maybe your request is too frequently!
[54605] ERROR: Or maybe your network is disconnected!
[71824] ERROR: Maybe you have put in the wrong AuthKey!
[71824] ERROR: Or maybe your request is too frequently!
[71824] ERROR: Or maybe your network is disconnected!
反馈
发表于 2021-8-10 20:50 | 显示全部楼层
qin1058934554 发表于 2021-8-10 17:22
[43199] Connected
[43200] Your IP is: 192.168.0.103
[45236] ERROR: Maybe you have put in the wrong A ...

没崩,我的设备都能在线.

点评

你的是使用esp8266做的设备吗  发表于 2021-8-11 09:01
发表于 2021-8-10 21:46 | 显示全部楼层
我这的设备都是正常的,可以在点灯管理台看到服务状态,看起来都是正常的
 楼主| 发表于 2021-8-11 08:51 | 显示全部楼层
coloz 发表于 2021-8-10 21:46
我这的设备都是正常的,可以在点灯管理台看到服务状态,看起来都是正常的 ...

手机软件版本是2.5.2还是???
 楼主| 发表于 2021-8-11 08:57 | 显示全部楼层
#define BLINKER_WIFI

#include <Blinker.h>

char auth[] = "8ffe08e3ad6d";
char ssid[] = "qzh";
char pswd[] = "110119120";

#define BUTTON_1 "ButtonKey"

BlinkerButton Button1(BUTTON_1);

void button1_callback(const String & state)
{
    digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
    BLINKER_LOG("get button state: ", state);

    if (state == BLINKER_CMD_BUTTON_TAP) {
        BLINKER_LOG("Button tap!");

        Button1.icon("icon_1");
        Button1.color("#FFFFFF");
        Button1.text("Your button name or describe");
        Button1.print();
    }
    else if (state == BLINKER_CMD_BUTTON_PRESSED) {
        BLINKER_LOG("Button pressed!");

        Button1.icon("icon_1");
        Button1.color("#FFFFFF");
        Button1.text("Your button name or describe");
        Button1.print();
    }
    else if (state == BLINKER_CMD_BUTTON_RELEASED) {
        BLINKER_LOG("Button released!");

        Button1.icon("icon_1");
        Button1.color("#FFFFFF");
        Button1.text("Your button name or describe");
        // Button1.text("Your button name", "describe");
        Button1.print();
    }
    else if (state == BLINKER_CMD_ON) {
        BLINKER_LOG("Toggle on!");

        Button1.icon("icon_1");
        Button1.color("#FFFFFF");
        Button1.text("Your button name or describe");
        // Button1.text("Your button name", "describe");
        Button1.print("on");
    }
    else if (state == BLINKER_CMD_OFF) {
        BLINKER_LOG("Toggle off!");

        Button1.icon("icon_1");
        Button1.color("#FFFFFF");
        Button1.text("Your button name or describe");
        // Button1.text("Your button name", "describe");
        Button1.print("off");
    }
    else {
        BLINKER_LOG("Get user setting: ", state);

        Button1.icon("icon_1");
        Button1.color("#FFFFFF");
        Button1.text("Your button name or describe");
        // Button1.text("Your button name", "describe");
        Button1.print();
    }
}

void dataRead(const String & data)
{
    BLINKER_LOG("Blinker readString: ", data);

    Blinker.vibrate();
   
    uint32_t BlinkerTime = millis();
    Blinker.print(BlinkerTime);
    Blinker.print("millis", BlinkerTime);
}

void setup()
{
    Serial.begin(115200);
    BLINKER_DEBUG.stream(Serial);

    pinMode(LED_BUILTIN, OUTPUT);
    digitalWrite(LED_BUILTIN, LOW);

    Blinker.begin(auth, ssid, pswd);
    Blinker.attachData(dataRead);
    Button1.attach(button1_callback);
}

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

点评

这个是BLINKER库里的示例程序,我就修改了密钥和网络,网络我采用手机热点,而且热点提示有一个设备连接的,其他手机连上这个热点测试能上网  发表于 2021-8-11 08:59
发表于 2021-8-11 10:20 | 显示全部楼层
qin1058934554 发表于 2021-8-11 08:57
#define BLINKER_WIFI

#include

请看串口调试信息
发表于 2021-8-11 10:47 | 显示全部楼层
qin1058934554 发表于 2021-8-11 08:51
手机软件版本是2.5.2还是???

2.5.2,前一段不行,重装就能在线,平台发了公告有变动影响设备在线。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-28 12:30 , Processed in 0.110854 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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