Jumpstart your Win10 IoT development with the AllJoyn Studio for Visual Studio 2015

Description

Building Windows 10 IoT? Then you'll want to check out the AllJoyn® Studio and Brian Rockwell's great post on how to use it...

AllJoyn® Studio

AllJoyn® in Windows® 10

An AllJoyn® development toolkit to quick-start AllJoyn® development.

The AllSeen Alliance created AllJoyn® to empower the Internet of Things to transcend devices, ecosystems and the "walled gardens" that typically limit interoperability to devices within a product family.

Windows® 10 has AllJoyn® built natively into its platform, allowing developers to easily IoT-enable their apps and devices. Notably, Windows® 10 provides an AllJoyn® WinRT API, and an AllJoyn® code generator is included in the Windows® 10 SDK. Together, these enable intuitive interaction with AllJoyn®-enabled devices.

AllJoyn® Studio

AllJoyn® Studio accelerates AllJoyn® development by combining code generation and the WinRT API with automated project management and ready-made application templates. It allows developers to benefit from the power of AllJoyn without the hassle of set-up and configuration.

Generic Episode Image Generic Episode Image

Features (1.0.1504.0)

  • Universal app templates (C#, JavaScript, C++, Visual Basic)
  • Automated reference management and project configuration
  • Adding/removing interfaces to/from a solution
  • Easy access to project management via the AllJoyn® menu
  • Loading interfaces from introspection XML file(s)
  • Discovering interfaces from producer(s) on the network1

Requirements

  • Visual Studio 2015 (Community, Professional or Enterprise)
  • Windows® 7, 8.1 or 10
  • ...

Using the AllJoyn ® Studio Extension

The AllSeen Alliance created AllJoyn to empower the Internet of Things. Windows 10 has AllJoyn built natively into its platform, allowing developers to easily take advantage of AllJoyn to "IoT-enable" your Windows 10 apps. This article will outline the steps required to build apps for Windows 10 using the Universal Windows Platform (UWP) AllJoyn APIs and the Visual Studio 2015 AllJoyn® Studio Extension.

This blog post is a fulfillment of the promises made in the AllJoyn session presented at //build/ 2015:

AllJoyn: Building Universal Windows Apps that Discover, Connect, and Interact with Other Devices and Cloud Services Using AllJoyn

Understanding AllJoyn UWP App Development

Three major components form AllJoyn UWP apps:

  1. App layout and design (XAML or HTML) and class components (C#, JavaScript, C++, or VB).
  2. The AllJoyn core APIs: AllJoyn Standard Client API (C) and Windows.Devices.AllJoyn API (WinRT)  available in the Windows 10 SDK.
  3. One or more UWP Windows Runtime Components (the  generates this code from AllJoyn interfaces).

The following diagram shows the architecture of a typical AllJoyn UWP project:

Generic Episode Image

...

This blogpost covers the first two ways - AllJoyn® Studio natively supports querying the network for AllJoyn producers and extracting their XML as well as uploading Introspection XML files.  A future post will cover the third way.

At //build/ 2015, an AllJoyn-enabled toaster device was shown which will serve as the example for this post. This toaster exposes controls for starting and stopping the toasting sequence, setting the "darkness", and notifications when the toast is burnt.

Generic Episode Image

...

[Click through the read the whole thing]

Also check out;



The Discussion

  • User profile image
    jalbuquerque

    Great post!

    I have my own project, and I am using a Raspberry Pi 2 model B.
    Being a Microsoft guy, I was focused, of course, on Windows 10 IoT. Bought a PiCamera and then learned that Windows 10 IoT does not support it because DX is not implemented...
    Will Windows 10 IoT in the future, implement DX and support the onboard use of the PiCamera?

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.