官术网_书友最值得收藏!

QoS 0

Fire and forget - sir, yes, sir!

QoS 0 is the minimal QoS level, often referred to as fire and forget. Messages are sent to the broker without confirmation that it has been sent on by the broker to subscribers. It still has all the guarantees of the TCP protocol, as do all forms of standard MQTT.

As can be seen in the following diagram, there is minimal communication overhead, which translates into minimal power requirements. Once sent to the broker, the message is deleted on the device (publisher). The broker immediately sends on to subscribers that have an open connection. Unlike the other QoS levels, the message is not stored for offline subscribers when QoS is set to zero.

QoS 0 is often used when there is a stable connection and disruption is unlikely, like in the case of a wired connection. It is also used when power constraints are more important than message delivery. In this case, either the resulting data is acceptable even with some messages lost, or the frequency of messages is high enough that if one is lost, then no big deal, another will be on the way shortly.

主站蜘蛛池模板: 郯城县| 鹤庆县| 当涂县| 凤山市| 定西市| 阿荣旗| 北宁市| 岚皋县| 焦作市| 榆中县| 崇明县| 北碚区| 武清区| 襄城县| 易门县| 中卫市| 左权县| 墨脱县| 瑞金市| 宁阳县| 伊通| 嘉祥县| 南部县| 石首市| 永德县| 庄浪县| 惠安县| 虹口区| 富阳市| 红安县| 五指山市| 阆中市| 济宁市| 黄龙县| 双桥区| 修武县| 新密市| 玛纳斯县| 安吉县| 宜州市| 富阳市|