mosquitto的安装

mosquitto的安装

1,安装服务器

 sudo aptget install mosquitto
2,安装客户端
 sudo apt-get install mosquitto-clients
3,测试
打开测试页面
http://test.mosquitto.org/gauge/
执行命令:
mosquitto_pub -h test.mosquitto.org -t temp/random -m 23.0

 

Comments are closed.
TOP