This solution is aimed for showing the simple setup and usage of UWP and IoT Devices towards Azure by the use of Azure Storage Queue. The solution also showcases a Windows Forms Application to easily manage messages on your Azure Storage Queue.
You need to create a "Storage Account" in Azure in order to create a Storage Queue.
- Log into Azure portal at http://portal.azure.com
- "New" => "Data + Storage" => "Storage account" => on "Select a deployment model", just choose "Resource Manager from the dropdown list
- Type in whatever name into the Name field for your storage account
- On "Type" you can decide on different metrics provided by the blade. We chose Standard-LRS
- On "Diagnostics" choose if you want this enabled or disabled
- On "Subscription", make sure you select a valid subscription like "Pay-as-you-go" or "Visual Studio Premium with MSDN" or "Bizspark" etc. Dreamspark won't work since this is not accessible for students at HED.
- On "Resource Group" type in the name of your resource group, like for instance "ledtoazurevideo" which will be the name of the container with collection of assets. This name is obviousl ynow taken, but write whatever you wish.
- On "Location" select wherever you want your server to be hosted for the storage account.
- Push "Create".
- Download Azure Storage Explorer from CodePlex to view and create stuff in the newly created storage account: https://azurestorageexplorer.codeplex.com/
- Fire up the Storage Explorer
- Push the "Add account" button
- Select Cloud Storage Account in the first radio-button selection
- On "Storage account name", copy your storage account name. In my case; ledtoazure.
- On "Storage Account key", go to your storage account in Azure, and press "Access keys" under "Manage".
- Copy and paste "KEY1"
- On "Storage endpoint domain" just let it be standard which is core.windows.net
- Test Access
- Click on Queues under Blob Containers in the left blade
- Click the "New" button
- Give the Queue an adequate name. Mine was "ledtoazurequeue".
- Click on the ledtoazurequeue and see the content. this is currently blank since there is nothing on the queue.
- If you want to, you can also find your queue in Azure under the storage account.
- We are now ready to open the project files and connect the Raspberry Pi 2 with it's components.
- NOTICE! You might have to re-install the "WindowsAzure.Storage" NuGet package. Do this by rightclicking each Project and selecting "Nuget Packet Manager".
Connect the Rpi2 properly to be able to successfully make a LED light up
You need:
- A resistor
- A LED
- A Breadboard
- A Cobbler
- 3 cables
- Some TP-cables
- A switch
- Internet.. duh
- A computer...
Connect everything together like this:
[IMAGE][IMAGE][IMAGE][IMAGE][IMAGE][IMAGE][IMAGE]
Open the main LED2Azure.sln (solution file) to see the content of the solution with all the following projects.
Solution name: LED2Azure
- This solution is aimed for showing the simple setup and usage of UWP and IoT Devices towards Azure by the use of Azure Storage Queue. The solution also showcases a Windows Forms Application to easily manage messages on your Azure Storage Queue.
Project #1: QueueAddForms
- This Windows Forms application bring together a UI for adding messages to the storage queue, as well as peaking/displaying the current messages in the queue.
Project #2: QueueReader_RPI2
- This UWP (Universal Windows Platform) application is designed to run on the Raspberry Pi 2 Windows 10 IoT Core Device, and will read the messages put on the Storage Queue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Special thanks to Tobias Kullblikk from NTNU for re-developing the solution of projects with the support of Anders Gill who is a Technical Evangelist in Microsoft Norway. Also special thanks to J�rgen Austvik for supporting the development with much needed guidance under NTNU Hackathon late 2015.
The work here is licensed under the MIT license - see the LICENSE file at the root of the repository
https://channel9.msdn.com/Series/MSDEVNO/LED-to-Azure-Starter-Pack