Class MqttQualityOfService
(experimental) MQTT Quality of Service (QoS) indicates the level of assurance for delivery of an MQTT Message.
Inheritance
System.Object
MqttQualityOfService
Namespace: Amazon.CDK.AWS.IoT.Actions.Alpha
Assembly: Amazon.CDK.AWS.IoT.Actions.Alpha.dll
Syntax (csharp)
public sealed class MqttQualityOfService : Enum
Syntax (vb)
Public NotInheritable Class MqttQualityOfService
Inherits
Enum
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html#mqtt-qos
ExampleMetadata: infused
Examples
new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"),
Actions = new [] {
new IotRepublishMqttAction("${topic()}/republish", new IotRepublishMqttActionProps {
QualityOfService = MqttQualityOfService.AT_LEAST_ONCE
}) }
});
Synopsis
Fields
AT_LEAST_ONCE | (experimental) QoS level 1. |
value__ | |
ZERO_OR_MORE_TIMES | (experimental) QoS level 0. |
Fields
AT_LEAST_ONCE
(experimental) QoS level 1.
public const MqttQualityOfService AT_LEAST_ONCE
Field Value
Type | Description |
---|---|
MqttQualityOfService |
Remarks
Sent at least one time, and then repeatedly until a PUBACK response is received. The message is not considered complete until the sender receives a PUBACK response to indicate successful delivery.
Stability: Experimental
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
ZERO_OR_MORE_TIMES
(experimental) QoS level 0.
public const MqttQualityOfService ZERO_OR_MORE_TIMES
Field Value
Type | Description |
---|---|
MqttQualityOfService |
Remarks
Sent zero or more times. This level should be used for messages that are sent over reliable communication links or that can be missed without a problem.
Stability: Experimental