我想使用mosquitto库使用MQTT协议.
首先,我想做一些安装mosquitto-clients的测试
sudo apt-get install mosquitto-clients
该程序提供了两种“方法”:
> mosquitto_pub
> mosquitto_sub
mosquitto_sub -d -t newtopic/test
使用默认主机/端口[localhost / 1883].
我获得:
Error: Connection refused
过于通用,因为错误..任何人都可以帮助我吗?
可能是防火墙问题?在这种情况下,我该如何检查这是否是问题?
我正在使用linux ubuntu(3.8.0-42-generic#62~minision1-Ubuntu)
最佳答案