File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
content/dotnet-template-azure-iot-edge-module/CSharp Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ namespace SampleModule
9
9
using System . Threading ;
10
10
using System . Threading . Tasks ;
11
11
using Microsoft . Azure . Devices . Client ;
12
+ using Microsoft . Azure . Devices . Client . Transport . Mqtt ;
12
13
13
14
class Program
14
15
{
@@ -41,8 +42,8 @@ public static Task WhenCancelled(CancellationToken cancellationToken)
41
42
/// </summary>
42
43
static async Task Init ( )
43
44
{
44
- AmqpTransportSettings amqpSetting = new AmqpTransportSettings ( TransportType . Amqp_Tcp_Only ) ;
45
- ITransportSettings [ ] settings = { amqpSetting } ;
45
+ MqttTransportSettings mqttSetting = new MqttTransportSettings ( TransportType . Mqtt_Tcp_Only ) ;
46
+ ITransportSettings [ ] settings = { mqttSetting } ;
46
47
47
48
// Open a connection to the Edge runtime
48
49
ModuleClient ioTHubModuleClient = await ModuleClient . CreateFromEnvironmentAsync ( settings ) ;
You can’t perform that action at this time.
0 commit comments