How to use Microsoft Azure DeviceClient with MQTT in .Net Framework 4.6.1
dheeraj awale
1
Reputation point
For a legacy WinForms application (.NET Frm. 4.6.1), I need to use Azure IOT device client to send events.
When trying to create an instance like below with MQTT type, It throws "Operation is not supported on this platform." error.
DeviceClient deviceClient = DeviceClient.CreateFromConnectionString(deviceConnectionString, TransportType.Mqtt, options);
If tried with HTTP then it throws: "Plug and Play is not supported over the HTTP transport."