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

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.

主站蜘蛛池模板: 宝应县| 云和县| 赤峰市| 黔西| 博客| 镇康县| 福泉市| 永安市| 威海市| 开平市| 玛曲县| 墨玉县| 锦州市| 观塘区| 翁源县| 家居| 临洮县| 建昌县| 嘉鱼县| 万山特区| 辛集市| 抚顺县| 苍南县| 温州市| 前郭尔| 安国市| 隆昌县| 瓮安县| 泸定县| 绩溪县| 霍林郭勒市| 内丘县| 弥勒县| 山西省| 诸城市| 满洲里市| 岑巩县| 唐山市| 吉首市| 集安市| 余干县|