Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
466 stars 493 forks source link

TransportType.Mqtt not implemented in UWP version of Microsoft.Azure.Devices.Client #27

Closed v-tbert closed 7 years ago

v-tbert commented 7 years ago

Mqtt transport doesn't seem to be implemented in UWP version of Microsoft.Azure.Devices.Client. I believe this means that important functionality like Direct Methods and Jobs are not supported from UWP

System.NotImplementedException was unhandled by user code HResult=-2147467263 Message=Mqtt protocol is not supported Source=Microsoft.Azure.Devices.Client.UWP StackTrace: at Microsoft.Azure.Devices.Client.DeviceClient.CreateFromConnectionString(String connectionString, TransportType transportType, IDeviceClientPipelineBuilder pipelineBuilder) at TestClient.share.TestClient.TestConnectionState() at Tests.UWP.ClientTests.ConnectionStateTest() InnerException:

arturl commented 7 years ago

Good timing! Working on it now!

akiraueda commented 7 years ago

I have encountered the same issue. {"Mqtt protocol is not supported"}

yuri1312 commented 7 years ago

hi.

do you have any updates on this request? We're looking forward to using DeviceManagement on some IoT devices, and b\c it only supports UWP and DeviceManagement only works with MQTT, we're depending on this.

Thanks!

arturl commented 7 years ago

Good to know, thanks. I expect the next building (coming out Feb 10 or so) will have MQTT support for UWP. Interested in trying out pre-release implementation? I can explain how to get the source.

akiraueda commented 7 years ago

Thank you for updating bug info. Please tell me where to get the source.

yuri1312 commented 7 years ago

yes, we'd love to try out the pre-release . is it just a matter of getting the latest dev iot SDK from github?

rneubauer commented 7 years ago

HI all, is it confirmed that the MQTT support for UWP support will be release din the Feb. 10th build?

It is UBER important for out projects. Really looking forward to it!

arturl commented 7 years ago

Sorry for delay, more info to follow soon.

arturl commented 7 years ago

I just checked in the implementation: https://github.com/Azure/azure-iot-sdk-csharp/commit/5bcfe263012ac9694cf661b6a9b0a85f4fed19f7 If you want to take it for a test-drive, use arturl-uwpmqtt2 branch.

The work depends on DotNetty version 0.4.2 which should be published on nuget.org very soon (in a few days, I hope). If you can't wait, build DotNetty from source yourself: https://github.com/Azure/DotNetty (dev branch)

VadimUmojo commented 7 years ago

Hello Artur, DotNetty 0.4.2 has been just published on nuget.org, could you please share when we could expect MQTT protocol for UWP in Microsoft.Azure.Devices.Client on nuget.org?

arturl commented 7 years ago

Hi @VadimUmojo, @jasmineymlo is working on it today.

arturl commented 7 years ago

Version 1.2.3 is available on NuGet.org now.

rneubauer commented 7 years ago

Awesome! Thanks everyone!!!

Get Outlook for Androidhttps://aka.ms/ghei36


Umojo Check out our Enterprise PBX Platform and Voice service for Office 365

RICK NEUBAUER FOUNDER AND CEO 1 E. Superior St. Suite 402 Chicago, IL 60611 Office:+13122572501 Mobile:+1 6308155300 Email:rneubauer@umojo.com www.umojo.com From: Artur Laksberg notifications@github.com Sent: Friday, February 10, 2017 7:48:17 PM To: Azure/azure-iot-sdk-csharp Cc: Rick Neubauer; Comment Subject: Re: [Azure/azure-iot-sdk-csharp] TransportType.Mqtt not implemented in UWP version of Microsoft.Azure.Devices.Client (#27)

Version 1.2.3 is available on NuGet.orghttps://www.nuget.org/packages/Microsoft.Azure.Devices.Client/ now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-iot-sdk-csharp/issues/27#issuecomment-279111261, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABMfDCFR_qxRKD5pvanqGT4URxr9zQ5bks5rbRNhgaJpZM4LgACZ.