全部文章 > #mqtt 共找到 篇文章 科技 mosquitto增加离线接收信息功能 2022/8/25 18:14:49 1、服务器配置conf persistence true persistence_file mosquitto.db 2、推送方和接收方 连接mqtt服务器指定 ClientId 和 CleanSession = false 发送和接收消息 MqttQualityOfServiceLevel=AtLeastOnce,qos是1 经测试,当订阅方断线又上线后,系统自动把未收到的消息... 作者:澎涛 💡733 👍0 👎0 MQTT离线推送 科技 mosquitto2.0的socket和websocket配置 2022/7/28 09:18:18 前面有篇文章讲到mosquitto1.6的端口配置,同时可支持socket和websocket,一般socket就是winform程序用的,到了web上就必须使用websocket协议了,在配置时发现2.0和1.6有细微差别,导致很久都不能同时使用。 特别记录一下 listener 1883protocol mqtt listener 1885protocol websocketssocke... 作者:澎涛 💡1636 👍0 👎0 mqtt 科技 MQTT支持web访问方法 2021/1/26 17:05:22 MQTT服务一般用直接下载mosquitto,安装后启动服务即可。方便可靠。但是默认情况下只开通了1883的tcp访问,用html的web页面上调用就不行了。其实mosquitto是支持多端口的,在配置文件中加入扩展监听即可配置见文件# Config file for mosquitto # # See mosquitto.conf(5) for more information. # #... 作者:澎涛 💡1552 👍0 👎0 前端访问MQTT