enum MyQttQos

Quality of service for message delivery.

MYQTT_QOS_AT_MOST_ONCE is the lowest quality of service because it does not track missing messages and replication while MYQTT_QOS_EXACTLY_ONCE_DELIVERY is the highest quality of service possible.

Enumerator
MYQTT_QOS_DENIED 

Quality of service denied.

API code used to report to the engine, for example, that a particular subscription is not accepted (MyQttOnSubscribeHandler).

MYQTT_QOS_SKIP_STORAGE 

Combinable flag for myqtt_conn_pub to control storage for publications that may require them by default (for example MYQTT_QOS_1 and MYQTT_QOS_2) but still requires that quality of service to be present in the header.

Combine them by doing MYQTT_QOS_1 | MYQTT_QOS_SKIP_STORAGE.

MYQTT_QOS_SKIP_STOREAGE_NOTIFY 

Combinable flag for myqtt_storage_store_msg_offline to avoid having that function notifying on_store handler.

This is very rare unless you know what you are doing.

MYQTT_QOS_AT_MOST_ONCE 

This is Qos 0.

The message is delivered according to the capabilities of the underlying network. No response is sent by the receiver and no retry is performed by the sender.

MYQTT_QOS_0 

Alias to MYQTT_QOS_AT_MOST_ONCE.

MYQTT_QOS_AT_LEAST_ONCE_DELIVERY 

This is Qos 1.

The receiver of a QoS 1 PUBLISH Packet acknowledges receipt with a PUBACK Packet.

MYQTT_QOS_1 

Alias to MYQTT_QOS_AT_LEAST_ONCE_DELIVERY.

MYQTT_QOS_EXACTLY_ONCE_DELIVERY 

This is Qos 2.

This is the highest quality of service, for use when neither loss nor duplication of messages are acceptable. There is an increased overhead associated with this quality of service.

MYQTT_QOS_2 

Alias to MYQTT_QOS_EXACTLY_ONCE_DELIVERY.