SOLVED
Home

Azure IoT Hub Device Streaming with UWP

%3CLINGO-SUB%20id%3D%22lingo-sub-662618%22%20slang%3D%22en-US%22%3EAzure%20IoT%20Hub%20Device%20Streaming%20with%20UWP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-662618%22%20slang%3D%22en-US%22%3E%3CP%3EAzure%20IoT%20Hub%20Device%20Streaming%20is%20a%20cool%20technology%20for%20point%20to%20point%20communications%20between%20a%20user%20app%20and%20an%20IoT%20device%20using%20an%20Azure%20IoT%20Hub%20has%20the%20go-between.%20The%20Azure%20IOT%20SDK%20DS%20samples%20are%20built%20with%26nbsp%3B%20.Net%20Core.%20I've%20been%20examining%20in%20detail%20what%20it%20takes%20to%20be%20able%20to%20use%20UWP%20at%20either%20end%20of%20the%20pipeline.%20Whilst%20.NetCore%20can%20use%20AMPQ%20or%20MQTT%20as%20the%20device%20side%20transport%2C%20it%20was%20found%20that%20you%20can%20only%20use%20MQTT%20with%20UWP%20at%20the%20device%20end.%20I%20have%20blogged%20a%20detail%20discussion%20of%20this%2C%20%3CA%20title%3D%22Azure%20IoT%20Hub%20Device%20Streaming%20with%20UWP%22%20href%3D%22https%3A%2F%2Fdavidjones.sportronics.com.au%2Fazure%2F-azure.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20IoT%20Hub%20Device%20Streaming%20with%20UWP%3C%2FA%3E.%20This%20discussion%20is%20based%20upon%20a%20comprehensive%20GitHub%20suite%20of%20projects%2C%26nbsp%3B%3CA%20title%3D%22AziothubDeviceStreaming%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fdjaus2%2FAziothubDeviceStreaming%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edjaus2%2FAziothubDeviceStreaming%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-738951%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20IoT%20Hub%20Device%20Streaming%20with%20UWP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-738951%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232349%22%20target%3D%22_blank%22%3E%40David%20Jones%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Posted%20Blog%20link%20not%20found%2C%20Thank%20for%20Git%20Repos.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F346407%22%20target%3D%22_blank%22%3E%40logeshpalani98%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-738972%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20IoT%20Hub%20Device%20Streaming%20with%20UWP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-738972%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20feedback.%20I%20have%20renamed%20a%20few%20links%20on%20the%20blog%20that%20had%20spaces%20and%20caused%20linkage%20errors.%20I%20have%20updated%20the%20link.%20Nb%20I%20have%20a%20major%20follow%20up%20on%20this%20as%20follows..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-738977%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20IoT%20Hub%20Device%20Streaming%20with%20UWP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-738977%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EUPDATE%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EAs%20previously%20indicated%2C%20I%20have%20encapsulated%20the%20IoTHub%20Device%20Streaming%20sample%20into%20a%20reusable%20.Net%20Standard%20library.%3C%2FP%3E%3CP%3EThis%20is%20on%20GitHub%20with%20a%20range%20of%20sample%20apps.%3C%2FP%3E%3CP%3EOne%20app%20is%20a%20UWP%20app%20that%20can%20be%20both%20the%20device%20and%20the%20services%2C%20and%20simultaneously.%3C%2FP%3E%3CP%3EI%E2%80%99ve%20add%20a%20range%20of%20options%20so%20you%20can%20quickly%20get%20running.%3C%2FP%3E%3CP%3EThe%20app%20now%20only%20needs%20an%20IoTHub.%20It%20can%20create%20the%20hub%E2%80%99s%20device.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20just%20published%20the%20UWP-Xaml%20app%20to%20the%20MS%20App%20Store%20so%20you%20very%20quickly%20test%20it%20out.%3C%2FP%3E%3CP%3ELinks%3A%3C%2FP%3E%3CP%3EApp%20Store%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fstore%2Fapps%2F9PB5B7NSJC3F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fstore%2Fapps%2F9PB5B7NSJC3F%3C%2FA%3E%3C%2FP%3E%3CP%3ERepository%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fdjaus2%2FAziothubDeviceStreaming%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fdjaus2%2FAziothubDeviceStreaming%3C%2FA%3E%3C%2FP%3E%3CP%3EHow%20to%20use%20the%20app%3A%20%3CA%20href%3D%22http%3A%2F%2Fwww.sportronics.com.au%2Fazure%2FAzure-IoT-Hub-Device-Streaming-How-to-use-theapp-azure.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.sportronics.com.au%2Fazure%2FAzure-IoT-Hub-Device-Streaming-How-to-use-theapp-azure.html%3C%2FA%3E%3C%2FP%3E%3CP%3EThe%20library%20API%3A%20%3CA%20href%3D%22http%3A%2F%2Fwww.sportronics.com.au%2Fazure%2FAziothubDeviceStreaming-AziothubDeviceStreamingUnder-the-hood-The-API-1-azure.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.sportronics.com.au%2Fazure%2FAziothubDeviceStreaming-AziothubDeviceStreamingUnder-the-hood-The-API-1-azure.html%3C%2FA%3E%3C%2FP%3E%3CP%3EThe%20library%20options%3A%20%3CA%20href%3D%22http%3A%2F%2Fwww.sportronics.com.au%2Fazure%2FAziothubDeviceStreaming-AziothubDeviceStreamingUnder-the-hood-The-API-2-Azure.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.sportronics.com.au%2Fazure%2FAziothubDeviceStreaming-AziothubDeviceStreamingUnder-the-hood-The-API-2-Azure.html%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-738979%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20IoT%20Hub%20Device%20Streaming%20with%20UWP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-738979%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ENote%20that%20the%20AMPQ%20issue%20as%20per%20the%20first%20post%20has%20been%20resolved.%20There%20is%20a%20bug%20in%20the%20installation%20of%20one%20of%20the%20Nuget%20libraries%20that%20doesn't%20get%20the%20latest%20Amqp%20Nuget%20library%20which%20is%20resolved%20by%20manually%20installing%20the%20latest%20Ampq%20Nuget%20package.%20This%20has%20been%20fed%20back%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
David Jones
Occasional Contributor

Azure IoT Hub Device Streaming is a cool technology for point to point communications between a user app and an IoT device using an Azure IoT Hub has the go-between. The Azure IOT SDK DS samples are built with  .Net Core. I've been examining in detail what it takes to be able to use UWP at either end of the pipeline. Whilst .NetCore can use AMPQ or MQTT as the device side transport, it was found that you can only use MQTT with UWP at the device end. I have blogged a detail discussion of this, Azure IoT Hub Device Streaming with UWP. This discussion is based upon a comprehensive GitHub suite of projects, djaus2/AziothubDeviceStreaming.

4 Replies

@David Jones 

 

The Posted Blog link not found, Thank for Git Repos.

 

Regards

@logeshpalani98 

 

Highlighted
Solution

Thanks for the feedback. I have renamed a few links on the blog that had spaces and caused linkage errors. I have updated the link. Nb I have a major follow up on this as follows..

UPDATE

As previously indicated, I have encapsulated the IoTHub Device Streaming sample into a reusable .Net Standard library.

This is on GitHub with a range of sample apps.

One app is a UWP app that can be both the device and the services, and simultaneously.

I’ve add a range of options so you can quickly get running.

The app now only needs an IoTHub. It can create the hub’s device.

 

I have just published the UWP-Xaml app to the MS App Store so you very quickly test it out.

Links:

App Store: https://www.microsoft.com/store/apps/9PB5B7NSJC3F

Repository: https://github.com/djaus2/AziothubDeviceStreaming

How to use the app: http://www.sportronics.com.au/azure/Azure-IoT-Hub-Device-Streaming-How-to-use-theapp-azure.html

The library API: http://www.sportronics.com.au/azure/AziothubDeviceStreaming-AziothubDeviceStreamingUnder-the-hood-Th...

The library options: http://www.sportronics.com.au/azure/AziothubDeviceStreaming-AziothubDeviceStreamingUnder-the-hood-Th...

 

 

Note that the AMPQ issue as per the first post has been resolved. There is a bug in the installation of one of the Nuget libraries that doesn't get the latest Amqp Nuget library which is resolved by manually installing the latest Ampq Nuget package. This has been fed back

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies