FoloToy/folotoy-server-self-hosting

mqtt连不上

Opened this issue · 5 comments

success: WebSerial VendorID 0x1a86 ProductID 0x7523

Folotoy $: at+config=?

Received command: at+config=?
{
"wifi": {
"enable": true,
"ssid": "MERCURY_C16D",
"password": "fdadfadsaf"
},
"common": {
"hardware_ver": "0.8.1.3",
"software_ver": "23.53.3.18",
"lamp_ver": "1.1",
"log_level": 5,
"productkey": "folotoy",
"devicekey": "e465b881d850",
"firstboot": false,
"role": 1,
"old_role": 7,
"etag": {
"1": "c6022212dd9efab0b75d9dc87ec07450",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": ""
},
"voice_threshold": 3600,
"record_type": 2,
"timeout": 30,
"open_tip_type": 1,
"voltage_alarm": 3.7
},
"mqtt": {
"enable": true,
"broker": "192.168.1.26",
"port": 1883,
"cid": "e465b881d850",
"username": "e465b881d850",
"password": "PFScVULPQJPy"
},
"udpSpeechServer": {
"address": "192.168.1.26",
"port": 8085
}
}
OK

I: Try to connect to MQTT Broker ...

docker-compose.yml 里面是这样的:

MQTT Broker

  MQTT_BROKER_HOST: emqx
  MQTT_BROKER_PORT: 1883
  MQTT_CLIENT_ID: folotoy
  MQTT_USERNAME: folotoy
  MQTT_PASSWORD: folotoy123

192.168.1.26 是你的局域网 ip 吗?电脑的 1883 端口是否开了?

192.168.1.26 是你的局域网 ip 吗?电脑的 1883 端口是否开了?

我也不知道。跟着你们的YouTube视频设置moonshot,设置好打开就是这样的。阿里云的端口是都开了的。我应该怎么调整?

应该你的ip填错了,看下自己的服务器ip是多少?如果你方便可以把 1panel 账号发给我,我看一下 lewang.dev@gmail.com

lewang.dev@gmail.com

好的我刚刚发过去了,多谢!