我正试图建立一个使用安全连接的莫斯基托经纪人。
我能够使用MQTTS配置并使其正确工作,我能够使用我的ESP32和MQTTBox进行测试。
现在我试图使用一个websocket连接一个web应用程序,但我相信我在某些Mosquitto配置中失败了。
对于MQTTS,我使用了"CA签名服务器证书“和端口8083,在MQTTBox和ESP32中一切正常工作。
我花了整个周末研究和尝试不同的配置,但我无法使连接在这两种方式中发挥作用。有人能帮我吗?谢谢!
# First of all, use this options on mosquitto.conf
per_listener_setti
我试图从代理连接/发布到web,但这不起作用。
我已经在互联网上搜索了,但找不到任何解决它的方法。
例如,当有人告诉我在mosquitto.conf上取消对bridge_protocol的标记时,它不起作用,但得到了另一个错误。
我的蚊子版本是1.4.9,我认为mosquitto.conf上需要做些改变
当我尝试-v -c mosquitto.conf的蚊子时,结果是:
mosquitto version 1.4.9
config loaded from mosquitto.conf
opening ipv4 and 6 socket on port 8883
new connection f
我安装了摩斯基托使用的
brew install mosquitto
并测试它是否正在使用
brew services list
输出
Name Status User Plist
mongodb stopped
mosquitto started amit /Users/amit/Library/LaunchAgents/homebrew.mxcl.mosquitto.plist
postgresql stopped
tomcat stopped
然而,当我从答案中尝试下面的命令时,我得到的命令没有找到
mosquitto_sub -v
我正在尝试通过websockets连接到我的Mosquitto代理,但我无法这样做,因为连接没有升级。蚊子代理公开端口9001以允许websocket连接,并且它在带有nginx-ingress控制器的Kubernetes集群后面运行。 $ kubectl get ingress mosquitto
NAME HOSTS ADDRESS PORTS AGE
mosquitto * 80 14m 。 $kubectl get service
NAME TYPE CL
我已经在Raspberry Pi上设置了MQTT,并为代理配置了Arduino Uno,但我在/var/log/MQTT/matterto.log文件中看到了以下条目:
New connection from 192.168.10.114 on port 1883.
Socket error on client <unknown>, disconnecting.
Pi是使用连接到本地局域网的ETH0设置的,IP地址为192.168.1.50
Pi上还设置了WiFi AP。Arduino Uno通过WiFi连接以发送/接收MQTT消息。DHCP AP的IP地址为192.168.10.
我已经设置了一个蚊子代理,但它拒绝通过websockets连接。下面是我的conf文件:
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/m
我发现了一个错误:
连接到‘wss://iot.XX.GG:8883/mqtt’的WebSocket连接失败:连接在收到握手响应之前已关闭
在Windows 10上使用Javascript Paho库试图通过SSL连接远程Mosquitto时。
我已经尝试过的内容如下所示:
<script type = "text/javascript" language = "javascript">
var mqtt;
var reconnectTimeout = 2000;
var host="iot.X
我有一个Ubuntu服务器和摩斯基托。我使用Lets加密来为它创建证书,下面是:中的说明
我的配置文件如下所示:
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_locatio