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

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.

主站蜘蛛池模板: 正镶白旗| 集贤县| 贡觉县| 三亚市| 阿克| 新绛县| 瑞昌市| 文昌市| 平南县| 顺昌县| 山东省| 绥滨县| 崇信县| 三亚市| 龙江县| 邵武市| 逊克县| 台东市| 云阳县| 内乡县| 晋城| 阿瓦提县| 武汉市| 沛县| 桦南县| 洪泽县| 海南省| 万全县| 沐川县| 赞皇县| 华蓥市| 行唐县| 嘉祥县| 甘孜县| 大安市| 桐柏县| 县级市| 桦南县| 隆化县| 信阳市| 蓬莱市|