Share via


MqttTransportSettings.WillMessage Property

Definition

The configured will message that is sent to the telemetry channel on an ungraceful disconnect.

public Microsoft.Azure.Devices.Client.Transport.Mqtt.IWillMessage WillMessage { get; set; }
member this.WillMessage : Microsoft.Azure.Devices.Client.Transport.Mqtt.IWillMessage with get, set
Public Property WillMessage As IWillMessage

Property Value

Remarks

The telemetry channel can be either the default Events endpoint or a custom endpoint defined by IoT hub routing. For more details, refer to https://docs.microsoft.com/azure/iot-hub/iot-hub-mqtt-support#using-the-mqtt-protocol-directly-as-a-device.

Applies to