Blinker APP分享设备问题-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3683|回复: 11

[已处理] Blinker APP分享设备问题

[复制链接]
发表于 2021-3-17 12:32 | 显示全部楼层 |阅读模式
将自己的设备分享给他人后  和设备在同一个wifi下接收的用户显示设备在线使用正常  切换至移动网络后 显示设备离线无法操作!!! APP和库均是最新版本,开发板为ESP32  模块反馈连接MQTT服务器也是正常的, 现原因不明,来个知道的帮我解答一下  万分感谢!!!!!
发表于 2021-3-17 14:22 | 显示全部楼层
我们这边测试是没有问题的,您可以使用debugall输出更多调试信息查看
https://www.arduino.cn/thread-84332-1-1.html
发表于 2021-3-18 22:33 | 显示全部楼层
本帖最后由 柒夏柒夜 于 2021-3-18 22:37 编辑

同楼主   遇到同样问题,共享给别人的设备在同wifi的情况下才会显示在线,切换到其他网络或者数据就显示设备离线

点评

同上,看看调试信息  详情 回复 发表于 2021-3-18 23:23
发表于 2021-3-18 23:23 | 显示全部楼层
柒夏柒夜 发表于 2021-3-18 22:33
同楼主   遇到同样问题,共享给别人的设备在同wifi的情况下才会显示在线,切换到其他网络或者数据就显示设 ...

同上,看看调试信息
发表于 2021-3-19 17:00 | 显示全部楼层
 楼主| 发表于 2021-3-23 12:31 | 显示全部楼层
奈何col 发表于 2021-3-17 14:22
我们这边测试是没有问题的,您可以使用debugall输出更多调试信息查看
https://www.arduino.cn/thread-84332 ...

主账号登陆信息:
  1. )⸮
  2. ⸮ܠ⸮⸮J⸮⸮1⸮⸮⸮1!y⸮⸮!⸮⸮⸮!⸮[51]
  3. [51]
  4. __       __                __
  5. /\ \     /\ \    __        /\ \              v0.3.5
  6. \ \ \___ \ \ \  /\_\    ___\ \ \/'\      __   _ __   
  7. \ \ '__`\\ \ \ \/\ \ /' _ `\ \ , <    /'__`\/\`'__\
  8.   \ \ \L\ \\ \ \_\ \ \/\ \/\ \ \ \\`\ /\  __/\ \ \./
  9.    \ \_,__/ \ \__\\ \_\ \_\ \_\ \_\ \_\ \____\\ \_\  
  10.     \/___/   \/__/ \/_/\/_/\/_/\/_/\/_/\/____/ \/_/  
  11.     To better use blinker with your IoT project!
  12.     Download latest blinker library here!
  13.     => https://github.com/blinker-iot/blinker-library

  14. [452] _aliType:
  15. [471] _duerType:
  16. [491] _miType:
  17. [508] _authKey: 3ccd7e862e1c
  18. [540] Connecting to Narva
  19. [655] ESP32_MQTT initialized...
  20. [655]
  21. ===========================================================
  22. ================== Blinker Timer loaded! ==================
  23. Warning!EEPROM address 1536-2431 is used for Blinker Timer!
  24. ============= DON'T USE THESE EEPROM ADDRESS! =============
  25. ===========================================================

  26. [947] countdown state: false
  27. [955] _cdRunState: 0
  28. [978] _totalTime: 0
  29. [1000] _runTime: 0
  30. [1021] _action:
  31. [1051] loop state: false
  32. [1067] _lpRunState: 0
  33. [1091] _times: 0
  34. [1109] _tri_times: 0
  35. [1132] _time1: 0
  36. [1151] _action1:
  37. [1171] _time2: 0
  38. [1190] _action2:
  39. [1209] _lpData: 0
  40. [1229] checkNum count: 4
  41. [1256] checkNum count: 4
  42. [1283] checkNum count: 4
  43. [1310] checkNum count: 4
  44. [1338] WiFi Connected.
  45. [1363] IP Address:
  46. [1384] 192.168.3.17
  47. [1416] HTTPS begin: https://iot.diandeng.tech/api/v1/user/device/diy/auth?authKey=3ccd7e862e1c&version=0.1.0&protocol=mqtts
  48. [2965] [HTTP] GET... code: 200
  49. [2967] reply was:
  50. [2967] ==============================
  51. [2968] {"detail": {"broker": "aliyun", "deviceName": "CC713A3AYFZPTS6O3P1B6JFW", "host": "mqtts://public.iot-as-mqtt.cn-shanghai.aliyuncs.com", "iotId": "9uOL1CfmTVfvj55TIEoT000000", "iotToken": "^1^1616473742606^bd94a0fb1faf8f6", "port": "1883", "productKey": "JgCGbHlndgz", "uuid": "5d9a1570b9576a36ea148306048e74db"}, "message": 1000}
  52. [3279] ==============================
  53. [3320] _num: 5
  54. [3336] ====================
  55. [3366] DEVICE_NAME_MQTT: CC713A3AYFZPTS6O3P1B6JFW
  56. [3419] MQTT_PRODUCTINFO_MQTT: JgCGbHlndgz
  57. [3464] MQTT_ID_MQTT: CC713A3AYFZPTS6O3P1B6JFW
  58. [3513] MQTT_NAME_MQTT: 9uOL1CfmTVfvj55TIEoT000000
  59. [3566] MQTT_KEY_MQTT: ^1^1616473742606^bd94a0fb1faf8f6
  60. [3625] MQTT_BROKER: aliyun
  61. [3654] HOST: public.iot-as-mqtt.cn-shanghai.aliyuncs.com
  62. [3714] PORT: 1883
  63. [3734] HOST: public.iot-as-mqtt.cn-shanghai.aliyuncs.com
  64. [3794] PORT: 1883
  65. [3814] UUID_MQTT: 5d9a1570b9576a36ea148306048e74db
  66. [3868] ====================
  67. [3899] BLINKER_PUB_TOPIC_MQTT: /JgCGbHlndgz/CC713A3AYFZPTS6O3P1B6JFW/s
  68. [3974] BLINKER_SUB_TOPIC_MQTT: /JgCGbHlndgz/CC713A3AYFZPTS6O3P1B6JFW/r
  69. [4049] Freeheap: 196384
  70. [4080] mDNS responder started
  71. [4110] webSocket_MQTT server started
  72. [4147] ws://CC713A3AYFZPTS6O3P1B6JFW.local:81
  73. [5196] Current time: Tue Mar 23 12:29:04 2021

  74. [5196] NTP time: 1616473744
  75. [5196] ==== needInit ====
  76. [5196] message: /share/device?deviceName=CC713A3AYFZPTS6O3P1B6JFW&key=3ccd7e862e1c
  77. [5259] blinker server begin
  78. [5289] Freeheap: 233592
  79. [6550] HTTPS begin: https://iot.diandeng.tech/api/v1/user/device/share/device?deviceName=CC713A3AYFZPTS6O3P1B6JFW&key=3ccd7e862e1c
  80. [6555] HTTPS payload: /share/device?deviceName=CC713A3AYFZPTS6O3P1B6JFW&key=3ccd7e862e1c
  81. [6649] [HTTP] status... code: 200
  82. [6686] {"detail": {"users": ["b5ffffe4822311eb89785254", "7cc311a2822411eb89785254", "89980a18830f11eb89785254", "0d5dc568831011eb89785254", "c9083a61b0a15c8b4c163a911b039b8c"]}, "message": 1000}
  83. [6891] payload: {"users":["b5ffffe4822311eb89785254","7cc311a2822411eb89785254","89980a18830f11eb89785254","0d5dc568831011eb89785254","c9083a61b0a15c8b4c163a911b039b8c"]}
  84. [7073] sharers data: {"users":["b5ffffe4822311eb89785254","7cc311a2822411eb89785254","89980a18830f11eb89785254","0d5dc568831011eb89785254","c9083a61b0a15c8b4c163a911b039b8c"]}
  85. [7254] sharer uuid: b5ffffe4822311eb89785254, length: 24
  86. [7315] sharer uuid: 7cc311a2822411eb89785254, length: 24
  87. [7375] sharer uuid: 89980a18830f11eb89785254, length: 24
  88. [7435] sharer uuid: 0d5dc568831011eb89785254, length: 24
  89. [7496] sharer uuid: c9083a61b0a15c8b4c163a911b039b8c, length: 32
  90. [7565] load timing
  91. [7597] load timing taskCount: 0
  92. [7620] freshTiming wDay: 2, nowMins: 749, nowSeconds: 44947
  93. [7683] nextTask: 10  apartSeconds: 41453 wDay: 2
  94. [7735] cbackData: 10
  95. [7758] change apartSeconds: 3600
  96. [7892] millis: 7892, connect_time: 5196
  97. [7892] MQTT conn init success
  98. [7892] =======================================================
  99. [7935] =========== Blinker Auto Control mode init! ===========
  100. [8002] Warning!EEPROM address 0-1279 is used for Auto Control!
  101. [8069] =========== DON'T USE THESE EEPROM ADDRESS! ===========
  102. [8135] =======================================================
  103. [8202] _______autoStart_______
  104. [8247] _aCount: 1
  105. [8255] new BlinkerAUTO() _num: 0
  106. [8302] _haveAuto: 0
  107. [8312] _autoState: 0
  108. [8335] _logicType: 0
  109. [8358] _compareType: 0
  110. [8383] Connecting to MQTT...
  111. [8416] reconnect_time: 0
  112. [9477] MQTT Connected!
  113. [9477] Freeheap: 191480
  114. [22412] Got: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"5d9a1570b9576a36ea148306048e74db","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  115. [22436] data: {"get":"state"}
  116. [22468] fromDevice: 5d9a1570b9576a36ea148306048e74db
  117. [22525] Authority uuid
  118. [22569] available: 1
  119. [22573] checkAvail: 1
  120. [22597] parse data: {"get":"state"}
  121. [22635] defined BLINKER_ARDUINOJSON
  122. [22674] autoManager begin: 0 0
  123. [22707] autoFormatData key: state, json: "state":"online"
  124. [22768] new.
  125. [22783] timer codes: 000
  126. [22810] autoFormatData key: timer, json: "timer":"000"
  127. [22868] add.
  128. [22883] autoFormatData key: version, json: "version":"0.1.0"
  129. [22948] add.
  130. [22962] print: {"state":"online","timer":"000","version":"0.1.0"}
  131. [23032] Proto print...
  132. [23057] Freeheap: 189368
  133. [23084] isJson: {"data":{"state":"online","timer":"000","version":"0.1.0"},"fromDevice":"CC713A3AYFZPTS6O3P1B6JFW","toDevice":"5d9a1570b9576a36ea148306048e74db","deviceType":"OwnApp"}
  134. [23277] MQTT Publish...
  135. [23303] Freeheap: 189368
  136. [23334] {"data":{"state":"online","timer":"000","version":"0.1.0"},"fromDevice":"CC713A3AYFZPTS6O3P1B6JFW","toDevice":"5d9a1570b9576a36ea148306048e74db","deviceType":"OwnApp"}
  137. [23514] ...OK!
  138. [23531] Freeheap: 189368
  139. [23558] Freeheap: 190408
  140. [23585] heartBeat isParsed 1
  141. [23616] checkNum count: 4
  142. [23644] checkNum count: 4
  143. [23673] checkNum count: 4
  144. [23701] checkNum count: 4
  145. [23729] _fresh need flush
  146. [23757] isParsed
  147. [23776] flush
复制代码


分享账号登陆信息:
  1. [114652] MQTT Ping!
  2. [114652] Freeheap: 191480
  3. [115805] Got: {"deviceType":"DiyArduino","data":{"btn-tz":"tap"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  4. [115831] data: {"btn-tz":"tap"}
  5. [115866] fromDevice: c9083a61b0a15c8b4c163a911b039b8c
  6. [115923] _sharerCount: 5
  7. [115950] ERROR: No authority uuid found, check is from bridge/share device, data: {"btn-tz":"tap"}
  8. [116054] ERROR: No authority uuid found, check is from bridge/share device, data: {"btn-tz":"tap"}
  9. [116158] ERROR: No authority uuid found, check is from bridge/share device, data: {"btn-tz":"tap"}
  10. [116262] ERROR: No authority uuid found, check is from bridge/share device, data: {"btn-tz":"tap"}
  11. [116367] From sharer: c9083a61b0a15c8b4c163a911b039b8c
  12. [116425] sharer num: 4
  13. [116469] available: 1
  14. [116474] checkAvail: 1
  15. [116499] parse data: {"deviceType":"DiyArduino","data":{"btn-tz":"tap"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  16. [116666] defined BLINKER_ARDUINOJSON
  17. [116705] autoManager begin: 0 0
  18. [116740] checkNum count: 4
  19. [116769] checkNum count: 4
  20. [116798] checkNum count: 4
  21. [116827] checkNum count: 4
  22. [116856] flush
  23. [126762] Got: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  24. [126787] data: {"get":"state"}
  25. [126821] fromDevice: c9083a61b0a15c8b4c163a911b039b8c
  26. [126878] _sharerCount: 5
  27. [126905] ERROR: No authority uuid found, check is from bridge/share device, data: {"get":"state"}
  28. [127008] ERROR: No authority uuid found, check is from bridge/share device, data: {"get":"state"}
  29. [127111] ERROR: No authority uuid found, check is from bridge/share device, data: {"get":"state"}
  30. [127214] ERROR: No authority uuid found, check is from bridge/share device, data: {"get":"state"}
  31. [127318] From sharer: c9083a61b0a15c8b4c163a911b039b8c
  32. [127376] sharer num: 4
  33. [127420] available: 1
  34. [127425] checkAvail: 1
  35. [127450] parse data: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  36. [127615] defined BLINKER_ARDUINOJSON
  37. [127655] autoManager begin: 0 0
  38. [127689] checkNum count: 4
  39. [127719] checkNum count: 4
  40. [127748] checkNum count: 4
  41. [127777] checkNum count: 4
  42. [127806] flush
复制代码

点评

更新lib  详情 回复 发表于 2021-3-23 14:20
发表于 2021-3-23 14:20 | 显示全部楼层
ahua7336 发表于 2021-3-23 12:31
主账号登陆信息:

更新lib
 楼主| 发表于 2021-3-23 15:00 | 显示全部楼层

更新了新的库  arduino nano 编译正常通过

esp32 报错 如下:
  1. In file included from C:\Users\kh7081227\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:16:0,
  2.                  from C:\Users\kh7081227\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
  3.                  from D:\液晶屏教程\STM32\arduino工程\卷帘门\sketch_may29a\sketch_may29a.ino:5:
  4. C:\Users\kh7081227\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'int BlinkerMQTT::connectServer()':
  5. C:\Users\kh7081227\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2353:18: error: 'class WiFiClientSecure' has no member named 'setInsecure'
  6.          client_s.setInsecure();
  7.                   ^
  8. exit status 1
  9. 为开发板 ESP32 Dev Module 编译时出错。
复制代码

点评

您确定是按文档安装的指定版本?我这边测试例程没有问题  详情 回复 发表于 2021-3-23 18:23
发表于 2021-3-23 18:23 | 显示全部楼层
ahua7336 发表于 2021-3-23 15:00
更新了新的库  arduino nano 编译正常通过

esp32 报错 如下:

您确定是按文档安装的指定版本?我这边测试例程没有问题
 楼主| 发表于 2021-3-24 12:36 | 显示全部楼层
奈何col 发表于 2021-3-23 18:23
您确定是按文档安装的指定版本?我这边测试例程没有问题

APP版本:2.5.2
固件版本:0.3.6
开发板版本:ESP32 Arduino  1.0.5

现象依旧相同:
  1. [337196] Got: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  2. [337221] data: {"get":"state"}
  3. [337254] fromDevice: c9083a61b0a15c8b4c163a911b039b8c
  4. [337312] _sharerCount: 5
  5. [337339] ERROR: No authority uuid found, check is from bridge/share device, data: {"get":"state"}
  6. [337442] ERROR: No authority uuid found, check is from bridge/share device, data: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  7. [337671] ERROR: No authority uuid found, check is from bridge/share device, data: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  8. [337900] ERROR: No authority uuid found, check is from bridge/share device, data: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  9. [338129] From sharer: c9083a61b0a15c8b4c163a911b039b8c
  10. [338188] sharer num: 4
  11. [338233] available: 1
  12. [338237] checkAvail: 1
  13. [338262] parse data: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"c9083a61b0a15c8b4c163a911b039b8c","toDevice":"CC713A3AYFZPTS6O3P1B6JFW"}
  14. [338427] defined BLINKER_ARDUINOJSON
  15. [338467] autoManager begin: 0 0
  16. [338501] checkNum count: 4
  17. [338530] checkNum count: 4
  18. [338560] checkNum count: 4
  19. [338589] checkNum count: 4
  20. [338618] flush
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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