Share via


MqttConnectEventErrorResponseProperties.Code Property

Definition

The failure code. It will be sent to the clients in the CONNACK packet as a return code (MQTT 3.1.1) or reason code (MQTT 5.0). Upstream webhook should select a valid integer value defined the MQTT protocols according to the protocol versions of the clients. If Upstream webhook sets an invalid value, clients will receive "unspecified error" in the CONNACK packet.

[System.Runtime.Serialization.DataMember(Name="code")]
[System.Text.Json.Serialization.JsonPropertyName("code")]
public int Code { get; }
[<System.Runtime.Serialization.DataMember(Name="code")>]
[<System.Text.Json.Serialization.JsonPropertyName("code")>]
member this.Code : int
Public ReadOnly Property Code As Integer

Property Value

Attributes

Applies to