我在 Windows 7 上安装了mosquitto 1.5.7并使其在本地主机上成功订阅和发布,但 mosquitto 无法连接到 ubidot 发布
mosquitto_pub -h "things.api.ubidots.com" -t "/v1.6/devices/plc" -u "token user" -p 1883 -q 1 -m '{"water level":17}'
给出结果
“Unable to connect (Lookup error.).
并且在尝试时
mosquitto -c configfile
结果是
Error: Unable to open config file
Error found at configfile:0.
Error: Unable to open configuration file
我需要将 MQTT 连接到 OPC 服务器,以便将我的 PLC 连接到物联网。
当我输入mosquitto
-v 时,我收到以下消息:
C:\Program Files\mosquitto>mosquitto -v
1550907715: mosquitto version 1.5.7 starting
1550907715: Using default config.
1550907715: Opening ipv6 listen socket on port 1883.
1550907715: Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.