点灯科技与esp32蓝牙可以共存吗-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 811|回复: 3

[已解答] 点灯科技与esp32蓝牙可以共存吗

[复制链接]
发表于 2022-8-10 20:30 | 显示全部楼层 |阅读模式
在程序中只要启动经典蓝牙或者是启动ble的搜索广播,就无法连接上mqtt,在app中设备一直是离线状态
发表于 2022-8-10 20:59 | 显示全部楼层
看看调试信息呢,更可能是ram不足造成的
 楼主| 发表于 2022-8-10 21:14 | 显示全部楼层
coloz 发表于 2022-8-10 20:59
看看调试信息呢,更可能是ram不足造成的

你好,调试信息是这个嘛
[12623] HTTPS begin: http://iot.diandeng.tech/api/v1/user/device/diy/auth?authKey=25bbadedc37a&miType=light&version=0.1.0&protocol=mqtts
[16758] [HTTP] GET... code: 200
[16759] reply was:
[16759] ==============================
[16759] {"detail": {"broker": "blinker", "deviceName": "529237CB6Y0QYL6LHCUX0TQD", "host": "mqtts://broker.diandeng.tech", "iotId": "4gLGjPiR8pCw3ttB3dTakNwbqP", "iotToken": "79jKHPRmKE47bzN5qez3RJ2uEPEUhuhj", "port": "1884", "productKey": "blinker", "uuid": "079bac83d43c11eca4875254"}, "message": 1000}
[16782] ==============================
[16786] _num: 5
[16787] ====================
[16789] DEVICE_NAME_MQTT: 529237CB6Y0QYL6LHCUX0TQD
[16794] MQTT_PRODUCTINFO_MQTT: blinker
[16797] MQTT_ID_MQTT: 529237CB6Y0QYL6LHCUX0TQD
[16801] MQTT_NAME_MQTT: 4gLGjPiR8pCw3ttB3dTakNwbqP
[16806] MQTT_KEY_MQTT: 79jKHPRmKE47bzN5qez3RJ2uEPEUhuhj
[16811] MQTT_BROKER: blinker
[16813] HOST: broker.diandeng.tech
[16817] PORT: 1884
[16818] HOST: broker.diandeng.tech
[16822] PORT: 1884
[16824] UUID_MQTT: 079bac83d43c11eca4875254
[16828] ====================
[16830] BLINKER_PUB_TOPIC_MQTT: /device/529237CB6Y0QYL6LHCUX0TQD/s
[16836] BLINKER_SUB_TOPIC_MQTT: /device/529237CB6Y0QYL6LHCUX0TQD/r
[16842] Freeheap: 57032
[16858] mDNS responder started
[16870] webSocket_MQTT server started
[16870] ws://529237CB6Y0QYL6LHCUX0TQD.local:81
[18874] Current time: Wed Aug 10 21:10:53 2022

[18875] NTP time: 1660137053
[18875] ==== needInit ====
[18875] message: /share/device?deviceName=529237CB6Y0QYL6LHCUX0TQD&key=25bbadedc37a
[18881] blinker server begin
[18883] Freeheap: 53272
[19197] HTTPS begin: http://iot.diandeng.tech/api/v1/user/device/share/device?deviceName=529237CB6Y0QYL6LHCUX0TQD&key=25bbadedc37a
[19198] HTTPS payload: /share/device?deviceName=529237CB6Y0QYL6LHCUX0TQD&key=25bbadedc37a
[19206] [HTTP] status... code: 200
[19210] {"detail": {"users": []}, "message": 1000}
[19214] _type: 16
[19216] payload: {"users":[]}
[19222] sharers data: {"users":[]}
[19222] load timing
[19290] load timing taskCount: 0
[19290] freshTiming wDay: 3, nowMins: 1270, nowSeconds: 76254
[19290] nextTask: 10  apartSeconds: 10146 wDay: 3
[19292] cbackData: 10
[19294] change apartSeconds: 3600
[19396] millis: 19396, connect_time: 18875
[19396] MQTT conn init success
[19396] =======================================================
[19397] =========== Blinker Auto Control mode init! ===========
[19403]      EEPROM address 0-1279 is used for Auto Control!
[19408] ======= PLEASE AVOID USING THESE EEPROM ADDRESS! ======
[19414] =======================================================
[19420] _______autoStart_______
[19489] _aCount: 1
[19489] new BlinkerAUTO() _num: 0
[19558] _haveAuto: 0
[19558] _autoState: 0
[19558] _logicType: 0
[19558] _compareType: 0
[19559] Connecting to MQTT...
[19559] reconnect_time: 0
[19814] Connection failed
[19814] Retrying MQTT connection in 5 seconds...
Humidity:77.00    Temperature:27.20
[24816] Connecting to MQTT...
[24816] reconnect_time: 1
[24931] Connection failed
[24931] Retrying MQTT connection in 5 seconds...
[24943] _disFreshTime: 24943
[24943] _disconnectCount: 2
[29945] Connecting to MQTT...
[29945] reconnect_time: 2
[30053] Connection failed
[30053] Retrying MQTT connection in 5 seconds...
[30068] _disFreshTime: 30068
[30069] _disconnectCount: 3
[35054] Connecting to MQTT...
[35054] reconnect_time: 3
发表于 2022-8-21 23:28 | 显示全部楼层
由于esp32蓝牙消耗的ram过多,我们还没有进行wifi ble共存的测试,如又后续进展,我们将在社区通知。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-28 08:32 , Processed in 0.216981 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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