참고 :
http://www.steves-internet-guide.com/mqtt-clean-sessions-example/
MQTT Clean Sessions and QOS Examples
A look at persistent and non persistent connections and how they are controlled using the clean session flag and how QOS settings affect them.
www.steves-internet-guide.com
결론 부터
example 설명 :
" client1 ( subscriber 구독 ) <------------ Broker ---------------> client2 ( publisher 게시) " 상황에서
client1 의 Clean Session Flag, Retain Flag, Subscribe Qos 설정을하고
client2 는 다른건 상관없고 Publish Qos 설정을 한 후
client1 을 connet -> disconnect 하고 client2에서 message를 게시한 다음,
client1 을 reconnect 했을 시 에 메세지가 오는지 에 대한 내용을 담은 Table 과 ex 임.
ex)
ex)
'네트워크 정리 > 통신관련(MQTT,ssh,rosbridge)' 카테고리의 다른 글
gmqtt 예제 ( client -> handler -> agent 구조 ) (0) | 2022.09.04 |
---|---|
gmqtt 예제 모음 저장 (0) | 2022.09.02 |
MQTTbox 사용법 (0) | 2022.06.14 |
rosbridge (0) | 2022.05.01 |
gmqtt 설명 (1) | 2022.04.25 |
댓글