This post is about developing apps for your IoT device. In the last post I mentioned about installing and booting Windows IoT core on Raspberry PI 2. In this post we will look into the application development for IoT devices.
Visual Studio 2015
IoT extension SDK
Developer mode should be enabled in Windows 10. If not enabled, you can do it via Settings > Security and Update. And you need to select Developer mode.
Developing a Hello World Application for Raspberry PI 2
Open Visual Studio, and Select Blank App (Windows Universal) from Universal project templates.
IoT extension SDK is not added to projects by default, if you need to access some device GPIO, you need to add reference of “Windows IoT Extensions for the UWP”, you can do it from Add References > Universal Windows > Extensions > Windows IoT Extensions for the UWP.
Now you can add some content to your MainPage.XAML file.
This application contains one button and one label, both shows Hello World. I don’t have any code behind.
Once your app is created, change the target architecture to “ARM”, select “Remote machine” from the list of target devices dropdown. If no remote machine configured, Visual Studio will display a Remote connections dialog like this.
If your Rasberry PI connected and detected, you can select it from Auto Detected remote connections. If it is not available, you need provide the IP Address or machine name, and change the authentication mode as “None”.
Once all the configurations completed, you can debug the project using Visual Studio.
Happy Programming :)
Did you like this article? Share it with your friends