WIFIduino烧录示例代码后无法连接Blinker App-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2032|回复: 5

[已解答] WIFIduino烧录示例代码后无法连接Blinker App

[复制链接]
发表于 2020-8-1 09:11 | 显示全部楼层 |阅读模式
设备信息
硬件: [wifiduino]
接入方式: [WIFI]
package版本: [esp8266-arduino-2.7.3dev]
blinker库版本: [arduino 1.8.13|py 0.2.5]
开发环境: [Arduino]
操作系统: [Windows]

IDE 中的设置
Module: [Generic ESP8266]
Flash Mode: [DOUT]
Flash Size: [1MB]
lwip Variant: [v2 Lower Memory|Higher Bandwidth]
Reset Method: [dtr]
Flash Frequency: [40Mhz]
CPU Frequency: [80Mhz]
Upload Using: [SERIAL]
Upload Speed: [115200)

手机信息及APP信息
手机品牌及型号   [Apple iPhone X]
android系统版本(IOS13)
blinker App版本  2.4.9

问题描述
使用官方的例程:Hello_WIFI烧录进去wifiduino开发板中,串口信息显示了已经正确连接到路由器上,也有log信息产生,但是APP一直显示离线进去控制面板也无法控制

代码
  1. #define BLINKER_WIFI

  2. #include <Blinker.h>

  3. char auth[] = "d2be645ef3d5";
  4. char ssid[] = "TRIOFREE";
  5. char pswd[] = "84902933";

  6. // 新建组件对象
  7. BlinkerButton Button1("btn-abc");

  8. // 按下按键即会执行该函数
  9. void button1_callback(const String & state) {
  10.     BLINKER_LOG("get button state: ", state);
  11.     digitalWrite(2, !digitalRead(2));
  12.     Blinker.vibrate();
  13. }

  14. void setup() {
  15.     // 初始化串口,并开启调试信息
  16.     Serial.begin(115200);   
  17.     BLINKER_DEBUG.stream(Serial);
  18.     BLINKER_DEBUG.debugAll();
  19.     // 初始化有LED的IO
  20.     pinMode(2, OUTPUT);
  21.     digitalWrite(2, HIGH);
  22.     // 初始化blinker
  23.     Blinker.begin(auth, ssid, pswd);
  24.     Button1.attach(button1_callback);
  25. }

  26. void loop() {
  27.     Blinker.run();
  28. }
复制代码


LOG信息
WiFi Connected.
[683] IP Address:
[683] 192.168.89.45
[694] [HTTP] begin: https://iot.diandeng.tech/api/v1/user/device/diy/auth?authKey=d2be645ef3d5&version=0.1.0&protocol=mqtts
[2326] [HTTP] GET... code: 200
[2335] reply was:
[2335] ==============================
[2335] {"detail": {"broker": "aliyun", "deviceName": "B4C6AC10A0Z76DKW2TMCUIB9", "host": "mqtts://public.iot-as-mqtt.cn-shanghai.aliyuncs.com", "iotId": "A4riNTkYErflMWXY8sRV000000", "iotToken": "^1^1596244168608^972f39554b538b3", "port": "1883", "productKey": "JgCGbHlndgz", "uuid": "7684fb8b64a5ae7b10a70fdfefb40f2c"}, "message": 1000}
[2358] ==============================
[2363] ====================
[2364] DEVICE_NAME_MQTT: B4C6AC10A0Z76DKW2TMCUIB9
[2369] MQTT_PRODUCTINFO_MQTT: JgCGbHlndgz
[2372] MQTT_ID_MQTT: B4C6AC10A0Z76DKW2TMCUIB9
[2376] MQTT_NAME_MQTT: A4riNTkYErflMWXY8sRV000000
[2381] MQTT_KEY_MQTT: ^1^1596244168608^972f39554b538b3
[2386] MQTT_BROKER: aliyun
[2388] HOST: public.iot-as-mqtt.cn-shanghai.aliyuncs.com
[2393] PORT: 1883
[2395] HOST: public.iot-as-mqtt.cn-shanghai.aliyuncs.com
[2400] PORT: 1883
[2401] UUID_MQTT: 7684fb8b64a5ae7b10a70fdfefb40f2c
[2406] ====================
[2409] BLINKER_PUB_TOPIC_MQTT: /JgCGbHlndgz/B4C6AC10A0Z76DKW2TMCUIB9/s
[2415] BLINKER_SUB_TOPIC_MQTT: /JgCGbHlndgz/B4C6AC10A0Z76DKW2TMCUIB9/r
[2421] Freeheap: 8712
[2427] mDNS responder started
[2428] webSocket_MQTT server started
[2429] ws://B4C6AC10A0Z76DKW2TMCUIB9.local:81
[15446] Current time: Sat Aug  1 01:09:41 2020

[15447] NTP time: 1596215381
[15447] time (millis() - ntpFreshTime): 15447
[15447] ntpGetTime: 0
[15448] 1
[15449] ==== needInit ====
[15452] message: /share/device?deviceName=B4C6AC10A0Z76DKW2TMCUIB9&key=d2be645ef3d5
[15459] blinker server begin
[15462] Freeheap: 30192

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (28):
epc1=0x40221c3c epc2=0x00000000 epc3=0x00000000 excvaddr=0x00300030 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffae0 end: 3fffffc0 offset: 0190
3ffffc70:  3fff8e6c 3fff9edc 3fff8cac 4021a237  
3ffffc80:  0000000c 3fff0a28 00000001 4021f1c4  
3ffffc90:  00000000 00000000 00000000 4021fa5a  
3ffffca0:  00000000 3fff8cac 3fff3254 40218e90  
3ffffcb0:  3fff082c 00000d50 3ffffd28 00000000  
3ffffcc0:  000001bb 3fff8cac 3fff8e6c 00000000  
3ffffcd0:  000001bb 3fff8cac 3fff8e6c 4021a40d  
3ffffce0:  402224b8 f119e66f 402224b8 f119e66f  
3ffffcf0:  3fff8cac 3ffffdac 3ffffda0 4021bd19  
3ffffd00:  ffffffff 3ffffdcc 3ffffda0 4021c4c9  
3ffffd10:  70747400 00000073 80fffd70 00000000  
3ffffd20:  00000000 00000000 3ffffda0 4021c9ab  
3ffffd30:  8000000b 3fff8d00 0055006f 8021ed0d  
3ffffd40:  0000003a 3fff8d7c 3ffffd70 4021e0d1  
3ffffd50:  3ffe96a7 00000001 00000000 4021e0f0  
3ffffd60:  3ffffe94 00000000 3ffffda0 4021c858  
3ffffd70:  70747400 3fff0073 80fffe94 00000010  
3ffffd80:  3fffff2c 3fffff00 3ffef7e4 4021cb16  
3ffffd90:  3fffff2c 3fffff00 3ffef7e4 4020c559  
3ffffda0:  00000000 00000000 3fff8cac 3fff8e6c  
3ffffdb0:  0011001f 00104a1f 3f0101bb 3f001388  
3ffffdc0:  3fff8e94 0055005f 00000000 70747468  
3ffffdd0:  00000073 85ff086c 3ffffe00 4021d37c  
3ffffde0:  800024d8 3fff3204 0011001f 00100967  
3ffffdf0:  3fff0a00 00000010 80000020 00000000  
3ffffe00:  00000000 00000000 ffffffff 40100e00  
3ffffe10:  00000000 0000000a 00000000 0000000f  
3ffffe20:  80000020 00000000 00000000 40100e10  
3ffffe30:  00000020 00000014 00000000 00000036  
3ffffe40:  0000000c 00000050 3fffff00 4021e152  
3ffffe50:  40278a20 00000010 3fffff00 0000000e  
3ffffe60:  40277f34 00000020 3fffff00 4021e152  
3ffffe70:  0000000b 3fff086c 3ffffeab 3fff322c  
3ffffe80:  001e001f 00000042 3fff32e4 000c000f  
3ffffe90:  00000042 3fff8d7c 006e006f 00000019  
3ffffea0:  3fff31dc 0019001f 00ffff00 4021e708  
3ffffeb0:  00000001 3fff34dc 3fffff00 00000036  
3ffffec0:  3fff8cac 00000005 3fffff00 00003c59  
3ffffed0:  0000000f 000000f4 3fffff00 4021e804  
3ffffee0:  3fff31a4 3ffef9e4 3fff0328 00003c59  
3ffffef0:  00000001 3fffff2c 3ffef7e4 4020cd69  
3fffff00:  3fff34dc 0042004f 00278cf8 40202796  
3fffff10:  00000000 3ffef9e4 3ffef7e4 4020cd9b  
3fffff20:  0045c7b1 80ff0a28 0000000a 4021f1c4  
3fffff30:  3fffdad0 00000000 3ffefcd8 00003c59  
3fffff40:  00000001 3ffef9e4 3ffef7e4 4020edfc  
3fffff50:  3fffdad0 4020d9b4 3ffef7e4 40202f9d  
3fffff60:  007a1200 fbbd3506 3ffef700 402059a5  
3fffff70:  00000000 feefeffe 80efeffe feefef00  
3fffff80:  00000000 00000000 00000001 3fff09c8  
3fffff90:  3fffdad0 00000000 3fff0988 4020f164  
3fffffa0:  feefeffe 00000000 3fff0988 4021f2dc  
3fffffb0:  feefeffe feefeffe 3ffe85c0 40100ea5  
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

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

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

[104] _aliType:
[106] _duerType:
[108] _miType:
[109] _authKey: d2be645ef3d5
[112] Connecting to TRIOFREE
[117] ESP8266_MQTT initialized...
[117]
===========================================================
================== Blinker Timer loaded! ==================
Warning!EEPROM address 1536-2431 is used for Blinker Timer!
============= DON'T USE THESE EEPROM ADDRESS! =============
===========================================================

[146] countdown state: false
[147] _cdRunState: 0
[149] _totalTime: 0
[150] _runTime: 0
[152] _action:
[154] loop state: false
[156] _lpRunState: 0
[158] _times: 0
[159] _tri_times: 0
[161] _time1: 0
[162] _action1:
[164] _time2: 0
[166] _action2:
[167] _lpData: 0
[169] checkNum count: 1

编译信息
无报错
发表于 2020-8-1 09:51 | 显示全部楼层
IDE 中的设置
Module: [Generic ESP8266]

选wifiduino
发表于 2020-8-1 11:17 | 显示全部楼层
在开发板管理器中删除ESP8266 2.7.3版本,安装2.7.2或者之前的版本试试,我的情况跟你差不多
发表于 2020-8-1 18:46 | 显示全部楼层
taoyan6666 发表于 2020-8-1 11:17
在开发板管理器中删除ESP8266 2.7.3版本,安装2.7.2或者之前的版本试试,我的情况跟你差不多  ...

确实,回退2.7.1了就正常了
发表于 2020-8-2 15:34 | 显示全部楼层
看了下,2.7.3的ssl库变更了,官方例程也无法正常运行(可能是官方的bug),建议先降版本使用
发表于 2020-12-23 23:03 | 显示全部楼层
感谢分享经验
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-12-1 07:55 , Processed in 0.101607 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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