Skip to content

Commit

Permalink
Update Functions binding to use MQTT (#186)
Browse files Browse the repository at this point in the history
* Update Functions binding to use MQTT
  • Loading branch information
varunpuranik committed Aug 20, 2018
1 parent 3590f8e commit f0ce4a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public async Task<ModuleClient> GetOrCreateAsync()

async Task<ModuleClient> CreateModuleClient()
{
ModuleClient moduleClient = await ModuleClient.CreateFromEnvironmentAsync().ConfigureAwait(false);
ModuleClient moduleClient = await ModuleClient.CreateFromEnvironmentAsync(TransportType.Mqtt_Tcp_Only)
.ConfigureAwait(false);

moduleClient.ProductInfo = "Microsoft.Azure.Devices.Edge.Functions.Binding";
return moduleClient;
Expand Down

0 comments on commit f0ce4a5

Please sign in to comment.