Clean Session Flag
1.订阅QoS=0,clean session=0,订阅topic1,连接之后,掉线上线,不订阅任何消息或者订阅非topic1主题,依然能收到topic1的消息
broker:
mosquitto -c /etc/mosquitto/mosquitto.conf -v
sub:
mosquitto_sub -c -t topic1 -q 0 -h localhost -p 8883 -i clent1
mosquitto_sub -c -t topic2 -q 0 -h localhost -p 8883 -i clent1
mosquitto_sub -c -t 0 -q 0 -h localhost -p 8883 -i clent1