The AllJoyn protocol is an emerging leader in the device communications space. Think of it as “Internet of Things” on your local LAN — connecting your TV, lights, stereo and dishwasher to each other.
With active support from most major electronics manufacturers (see this incredibly large list) devices are starting to be released to the public. All new LG smart TV’s have AllJoyn support, and LifX, an exciting new Kickstarter funded smart lightbulb is adding support now too. Qualcomm is building AllJoyn enabled chipsets to go in all manner of upcoming consumer devices. Perhaps the largest near term impact to users will be Microsoft’s Windows 10, which includes native AllJoyn support and will soon be on billions of devices.
Our team at Microsoft Strategic Engagements has been ramping up on the AllJoyn framework for a while now, and felt there was a large gap in usability and accessibility for developers who want to write applications to use this technology. We wanted it to be easy for people to write cross-platform mobile applications without dealing with the complexity of the native code that makes up the AllJoyn SDK.
AllJoyn Plugin For Cordova
Where To Get It
The core plugin lives on Github
But you can install it from the Cordova plugin repository, or install the latest directly from the repo
cordova plugin add org.allseen.alljoyn
cordova plugin add https://github.com/AllJoyn-Cordova/cordova-plugin-alljoyn.git
How To Use it
We have put together several samples to help you get started. Each of them is a Cordova application based on the plugin. You can clone them, add the plugin, and build/deploy them right away.
Controlling a TV
or check the blog post covering the sample.
and Andre’s in depth look at how he made it work.
Controlling a Lightbulb
and the blog post about the sample.
and Phong’s detailed blog post.
Peer to Peer chat
How to Setup and AllJoyn Router
A router is required on your network to use AllJoyn devices. Read about setting up a router.
Today we have made our initial release, but we still have quite a few issues to work through over the coming weeks. Some of the higher priority issues to be aware of are as follows.
Cordova 4.2.0 has bugs related to Windows Projects. A bug fix is committed to mainline Cordova for issues relating to cross-architecture projects and will be released with 4.2.1. Right now you’ll need to install Cordova from source to target Windows.
Well, a lot of work went into making the AllJoyn Thin Client more portable, so we want to take advantage of it. We’ll be looking to get NPM packages out for NodeJS as well as Nuget packages for .Net developers.
Additionally, we are working to push back our additions to the AllJoyn Thin Client to the core SDK repository and eliminate our fork.