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

mu-xin 发表于 2022-8-10 20:30

点灯科技与esp32蓝牙可以共存吗

在程序中只要启动经典蓝牙或者是启动ble的搜索广播,就无法连接上mqtt,在app中设备一直是离线状态

coloz 发表于 2022-8-10 20:59

看看调试信息呢,更可能是ram不足造成的

mu-xin 发表于 2022-8-10 21:14

coloz 发表于 2022-8-10 20:59
看看调试信息呢,更可能是ram不足造成的

你好,调试信息是这个嘛
HTTPS begin: http://iot.diandeng.tech/api/v1/user/device/diy/auth?authKey=25bbadedc37a&miType=light&version=0.1.0&protocol=mqtts
GET... code: 200
reply was:
==============================
{"detail": {"broker": "blinker", "deviceName": "529237CB6Y0QYL6LHCUX0TQD", "host": "mqtts://broker.diandeng.tech", "iotId": "4gLGjPiR8pCw3ttB3dTakNwbqP", "iotToken": "79jKHPRmKE47bzN5qez3RJ2uEPEUhuhj", "port": "1884", "productKey": "blinker", "uuid": "079bac83d43c11eca4875254"}, "message": 1000}
==============================
_num: 5
====================
DEVICE_NAME_MQTT: 529237CB6Y0QYL6LHCUX0TQD
MQTT_PRODUCTINFO_MQTT: blinker
MQTT_ID_MQTT: 529237CB6Y0QYL6LHCUX0TQD
MQTT_NAME_MQTT: 4gLGjPiR8pCw3ttB3dTakNwbqP
MQTT_KEY_MQTT: 79jKHPRmKE47bzN5qez3RJ2uEPEUhuhj
MQTT_BROKER: blinker
HOST: broker.diandeng.tech
PORT: 1884
HOST: broker.diandeng.tech
PORT: 1884
UUID_MQTT: 079bac83d43c11eca4875254
====================
BLINKER_PUB_TOPIC_MQTT: /device/529237CB6Y0QYL6LHCUX0TQD/s
BLINKER_SUB_TOPIC_MQTT: /device/529237CB6Y0QYL6LHCUX0TQD/r
Freeheap: 57032
mDNS responder started
webSocket_MQTT server started
ws://529237CB6Y0QYL6LHCUX0TQD.local:81
Current time: Wed Aug 10 21:10:53 2022

NTP time: 1660137053
==== needInit ====
message: /share/device?deviceName=529237CB6Y0QYL6LHCUX0TQD&key=25bbadedc37a
blinker server begin
Freeheap: 53272
HTTPS begin: http://iot.diandeng.tech/api/v1/user/device/share/device?deviceName=529237CB6Y0QYL6LHCUX0TQD&key=25bbadedc37a
HTTPS payload: /share/device?deviceName=529237CB6Y0QYL6LHCUX0TQD&key=25bbadedc37a
status... code: 200
{"detail": {"users": []}, "message": 1000}
_type: 16
payload: {"users":[]}
sharers data: {"users":[]}
load timing
load timing taskCount: 0
freshTiming wDay: 3, nowMins: 1270, nowSeconds: 76254
nextTask: 10apartSeconds: 10146 wDay: 3
cbackData: 10
change apartSeconds: 3600
millis: 19396, connect_time: 18875
MQTT conn init success
=======================================================
=========== Blinker Auto Control mode init! ===========
      EEPROM address 0-1279 is used for Auto Control!
======= PLEASE AVOID USING THESE EEPROM ADDRESS! ======
=======================================================
_______autoStart_______
_aCount: 1
new BlinkerAUTO() _num: 0
_haveAuto: 0
_autoState: 0
_logicType: 0
_compareType: 0
Connecting to MQTT...
reconnect_time: 0
Connection failed
Retrying MQTT connection in 5 seconds...
Humidity:77.00    Temperature:27.20
Connecting to MQTT...
reconnect_time: 1
Connection failed
Retrying MQTT connection in 5 seconds...
_disFreshTime: 24943
_disconnectCount: 2
Connecting to MQTT...
reconnect_time: 2
Connection failed
Retrying MQTT connection in 5 seconds...
_disFreshTime: 30068
_disconnectCount: 3
Connecting to MQTT...
reconnect_time: 3

点灯官方 发表于 2022-8-21 23:28

由于esp32蓝牙消耗的ram过多,我们还没有进行wifi ble共存的测试,如又后续进展,我们将在社区通知。
页: [1]
查看完整版本: 点灯科技与esp32蓝牙可以共存吗