1

AllJoyn javascript and document

asked 2015-04-01 00:31:47 -0700

franklin gravatar image

Hi all:

I've learn AllJoyn in Javascipt recently:

  1. AllJoyn.js is a special and very simple API, with IO modules (GPIO) and AJ modules (thin core lib + AJ services). Its APIs are different from AllJoyn C++ or Java.
  2. NodeJS AllJoyn NPM is made by octoblu. It wrapped the core (14.06) to v8. Its APIs are much more similar to AllJoyn C++ or Java.

Then I downloaded document. I read \alljoyn-docs-14.06.00\docs\api\javascript | javascript_1402, and I got confused. These document described a set of very rich APIs that are also very similar to AllJoyn C++ or Java. But alljoyn npm is made by octoblu, and there is no such a detailed document.

What are these documents for ? Did I miss another version of AllJoyn in JavaScript?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-04-01 10:18:01 -0700

jprestwo gravatar image

There are two different AllJoyn JavaScript projects.

  1. AllJoyn Core has a JavaScript language binding, meaning its directly calling the C++ API's underneath. This is why the API's look similar to Java and C++.

  2. Then there is AllJoyn.js which you explained in (1). This implements AJTCL and Base Services underneath a JavaScript compiler and run time engine. This is very different from the AllJoyn Core JavaScript bindings explained in my first point.

  3. Lastly NodeJS and AllJoyn NPM is a completely different project that the Allseen Alliance is not directly involved in.

If you need help or support for 1 and 2 we can help you here but if you are doing anything with NodeJS /NPM (3) you will have to use octoblu as a resource for help.

edit flag offensive delete publish link more

Comments

Thank you James! I have read more about (1.) AllJoyn Core in JavaScript these two day. I think this is binded with standard core, and this is working on firefox's plugin. Is that correct?

franklin ( 2015-04-08 18:28:42 -0700 )edit

Yes, firefox is the only browser that supports it.

jprestwo ( 2015-04-09 09:03:53 -0700 )edit

Thank you James~ : D

franklin ( 2015-04-10 03:04:56 -0700 )edit

I want to use node webkit to develop program on Windows, which JS API should I choose, AllJoyn Core or AllJoyn.js?

dodolzg ( 2015-11-09 03:27:09 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-01 00:31:47 -0700

Seen: 255 times

Last updated: Apr 01 '15