MqttConnectEventErrorResponseProperties.Code Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET