尝试连接 MQTT+Tasmota 时连接被拒绝
Connection refused when trying to connect with MQTT+Tasmota
我已经对此进行了谷歌搜索,并且在将我的问题发布到这里之前我真的尝试解决了这个问题。
系统: Raspberry Pi B+(最新Raspbian),Wifi
问题:
当我尝试 运行 时:
mosquitto_pub -h 192.168.1.121 -t cmnd/DVES_1A6953_fb/cmnd/Power1 -m 关闭
我得到 "Error: Connection refused"
我知道的:
Mosquitto 安装在 192.168.1.100 (RPi)
Sonoff Basic Pow 位于 192.168.1.121
我试过 mosquitto -d。
然后 sudo systemctl enable mosquitto.service.
mosquitto -v 给我:
1579784576:mosquitto 版本 1.5.7 开始
1579784576:使用默认配置。
1579784576:在端口 1883 上打开 ipv4 侦听套接字。
1579784576:错误:地址已在使用
我真的不知道现在还能做什么:)
希望你能帮助我!
/奥斯卡
您正在尝试直接发布到设备 (192.168.1.121) 而不是发布到代理 (192.168.1.100)
您需要向代理发送消息,代理会将消息转发到设备(假设它订阅了正确的主题)
mosquitto_pub -h 192.168.1.100 -t cmnd/DVES_1A6953_fb/cmnd/Power1 -m off
我已经对此进行了谷歌搜索,并且在将我的问题发布到这里之前我真的尝试解决了这个问题。
系统: Raspberry Pi B+(最新Raspbian),Wifi
问题: 当我尝试 运行 时: mosquitto_pub -h 192.168.1.121 -t cmnd/DVES_1A6953_fb/cmnd/Power1 -m 关闭 我得到 "Error: Connection refused"
我知道的: Mosquitto 安装在 192.168.1.100 (RPi) Sonoff Basic Pow 位于 192.168.1.121 我试过 mosquitto -d。 然后 sudo systemctl enable mosquitto.service.
mosquitto -v 给我: 1579784576:mosquitto 版本 1.5.7 开始 1579784576:使用默认配置。 1579784576:在端口 1883 上打开 ipv4 侦听套接字。 1579784576:错误:地址已在使用
我真的不知道现在还能做什么:)
希望你能帮助我!
/奥斯卡
您正在尝试直接发布到设备 (192.168.1.121) 而不是发布到代理 (192.168.1.100)
您需要向代理发送消息,代理会将消息转发到设备(假设它订阅了正确的主题)
mosquitto_pub -h 192.168.1.100 -t cmnd/DVES_1A6953_fb/cmnd/Power1 -m off