Skip to content

Commit

Permalink
Merge pull request #868 from Azure/uwp-update-doc-new
Browse files Browse the repository at this point in the history
uwp update doc new
  • Loading branch information
tameraw authored Oct 13, 2016
2 parents 5fa6c4f + 5ef08c9 commit eb0f4e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 7 additions & 1 deletion csharp/device/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ The library is available as a NuGet package for you include in your own developm
* Batches messages to improve communication efficiency.
* Supports pluggable transport protocols.

Note the library Microsoft.Azure.Devices.Client supports both HTTPS and AMQP protocols. The Microsoft.Azure.Devices.Client.WinRT library currently supports HTTPS at this time.
> Note: Currently, **Microsoft.Azure.Devices.Client.WinRT** doesn't support **MQTT** protocol.
For example,calling `DeviceClient deviceClient = DeviceClient.CreateFromConnectionString(DeviceConnectionString, TransportType.Mqtt);` will result in "Mqtt protocol is not supported" exception.

> Note : Currently, **Microsoft.Azure.Devices.Client.PCL** only supports **HTTPS** protocol.
For example, calling `DeviceClient deviceClient = DeviceClient.CreateFromConnectionString(DeviceConnectionString, TransportType.Amqp);` will result in "Amqp protocol is not supported" exception.


## Application development guidelines
Expand Down
12 changes: 4 additions & 8 deletions doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,11 @@ UWP uses the Windows Store resource model that replaces the hub-and-spoke model
To support resources in Microsoft.Azure.Devices.Client library, the existing Resource.resx file has been copied to Resource.resw. The two files will now need to be kept in sync. Unlike in the .NET version of the library, the UWP version does not contain generated C# files. Instead, a new file, WinRTResources.cs is introduced. Whenever a new string is added to the .resx/.resw file, a corresponding entry must be copied from Resources.Designer.cs to WinRTResources.cs (follow the existing entries as an example)

<a name="notimpluwp"/>
## NotImplementedException thrown when using UWP
## System.NotImplementedException occurred in Microsoft.Azure.Devices.Client.winmd
The Universal Windows Platform (UWP) version of the .NET client device library does **not** currently support **MQTT** protocol.

The UWP version of the .NET device libraries does not support the AMQP protocol. If you see a **NotImplementedException** thrown in a UWP application that uses the Azure IoT device SDK for .NET, then check that you are using the HTTPS protocol and not the AMQP protocol.

For example:

```
var deviceClient = DeviceClient.Create(iotHubUri, new DeviceAuthenticationWithRegistrySymmetricKey("myFirstDevice", deviceKey), TransportType.Http1);
```
For example, calling `DeviceClient deviceClient = DeviceClient.CreateFromConnectionString(DeviceConnectionString, TransportType.Mqtt);`
will result in "Mqtt protocol is not supported" exception.

<a name="httpexception"/>
## IotHubCommunicationException or FileNotFoundException thrown when using HTTP protocol
Expand Down

0 comments on commit eb0f4e3

Please sign in to comment.