随笔分类 - 协议
摘要:1、订阅参数 1. -c 设定‘clean session’为无效状态,这样一直保持订阅状态,即便是已经失去连接,如果再次连接仍旧能够接收的断开期间发送的消息。2. -d 打印debug信息3. -h 指定要连接的域名 默认为localhost4. -i 指定clientId5. -I 指定clie
阅读全文
摘要:1. >mosquitto.exe -c mosquitto.conf #开启服务器 2. >mosquitto_sub.exe -v -t topic1 #订阅 3. >mosquitto_pub.exe -t topic1 -m "hello" #发布 mosquitto_sub.exe -h
阅读全文