一、网站资源
1、github网站
mosquitto在githubhttps://github.com/eclipse-mosquitto/mosquitto?tab=readme-ov-file
Documentation
Documentation for the broker, clients and client library API can be found in the man pages, which are available online at Index of /man/. There are also pages with an introduction to the features of MQTT, the
mosquitto_passwd
utility for dealing with username/passwords, and a description of the configuration file options available for the broker.Detailed client library API documentation can be found at https://mosquitto.org/api/
github给我们指引了mosquitto的官网文档网址。
2、官网文档
3、参考博客
1、MQTT协议入门以及mosquitto示例_mqtt的mosquitto.conf.example-优快云博客
发布只能发布单一topic,但是订阅可以订阅一系列Topic主题列表。通过通配符来匹配一个列表。