THE RASPBERRY PI single board computer has rightly proved popular with hobbyists and startups as a low-cost device with enough power to drive projects of all kinds, including those involving the Internet of Things (IoT). With this in mind, Microsoft has shown how to build a quick and dirty app to link the Pi with the Azure cloud to collect sensor data.
Microsoft unveiled the Azure App Service last year as a cloud-based platform for the speedy development of apps for mobile and web deployment.
Brady Gaster, Microsoft's programme manager for Azure SDK and tools, has now explained in a blog post how to send sensor data from the Raspberry Pi to an API App on Azure.
For those interested in trying it out, the setup uses a Raspberry Pi 2, the upgraded version of the device launched last year, running Microsoft's Windows 10 IoT Core. This is a software platform designed for small devices running embedded applications and bears little resemblance to Windows 10 on the PC.
Gaster also used Visual Studio Community, a free version of the Visual Studio suite, and the Azure SDK 2.8.2 for .NET, but you will need an Azure account to use the Azure App Service.
If that doesn't put you off, Gaster has posted sample code onto a GitHub repository and shown a walk-through of the steps needed to get it working.
"This post introduces the idea of using App Service as a back-end for your IoT projects, and the code provides a great getting-started point for allowing your creativity to flourish. Grab the code, customise it, and feel free to submit branches or pull requests if you add to the sample," he wrote.
The sample app itself is somewhat basic, but shows how you can connect a simple device to a cloud-hosted service and start collecting data and doing something useful with it.
Microsoft noted that the Azure IoT Developer Centre has a wealth of information on all the available options, like the recently made IoT Hubs.
Other IoT cloud services are available. µ
Fit-bit off more than it can chew
Make it til' you fake it
Leak also confirms storage and colour variants
Quantum supremacy? You don't know you're Bourne