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

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.

主站蜘蛛池模板: 丰宁| 怀远县| 萨迦县| 赣州市| 潜山县| 大庆市| 福清市| 黑龙江省| 肇东市| 澎湖县| 贵南县| 灌阳县| 高青县| 牟定县| 湘潭市| 河南省| 成安县| 托克逊县| 茂名市| 读书| 中方县| 晋中市| 邯郸市| 绥化市| 陈巴尔虎旗| 平武县| 太保市| 高邑县| 噶尔县| 陇西县| 西贡区| 灵石县| 定襄县| 灌南县| 泰安市| 宕昌县| 金沙县| 新兴县| 四会市| 南部县| 平舆县|