0

Looking for Hello World-style examples

asked 2014-10-21 07:47:58 -0700

jernst gravatar image

I'm trying to figure out what this project is all about, and the easiest way to do that IMHO would be a very simple Hello World example, like blinking an LED on the RPi or something like that. Do such ready-to-use examples exist, and if so, can you point me to them? (If I failed to find them, I apologize. I tried.)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-03 16:29:14 -0700

bspencer gravatar image

There is no board support package at this time for blinking an LED on a RPi, but if you use the AllJoyn-js software on the RPi and use the IO.system call you can probably make the LED blink pretty easily. You can find sample js files here and information on setting up the AllJoyn-JS project for RPi here.

There are quite a few samples that are available depending on the language environment you want to develop with. You can use the 'basic' sample applications found here for C++ and Java. These applications when built for linux will be automatically compiled, and when you download the Android SDK will be a precompiled SDK that you can use. The sample code can easily be modified to meet your needs for modification of the simple application.

Let us know if you have further questions.

edit flag offensive delete publish link more
0

answered 2016-01-25 07:47:50 -0700

ItWorksInMyPc gravatar image

updated 2016-01-25 12:23:31 -0700

Here is how i natively compiled ajtcl, on my PC:

    /tmp/ajtcl-15.09.00a-src$ export LD_LIBRARY_PATH=./build/release/src/

    /tmp/ajtcl-15.09.00a-src$ export AJ_ROOT=/tmp/ajtcl-15.09.00a-src

    /tmp/ajtcl-15.09.00a-src$ export TARGET_CPU=x86_64

    /tmp/ajtcl-15.09.00a-src$ scons WS=off VARIANT=release

Run, basic_service,

    /tmp/ajtcl-15.09.00a-src$ ./dist/bin/basic_service

recvfrom: Connection refused

Session lost. ID = 1377328, reason = 2
.
.
.

Open another terminal and run, basic_client,

/tmp/ajtcl-15.09.00a-src$ ./dist/bin/basic_client 

'org.alljoyn.Bus.sample.cat' (path='/sample') returned 'Hello World!'.

Basic client exiting with status 0.

NOTE: you need to have alljoyn-daemon running as a background process.

Hope it helps.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-10-21 07:47:58 -0700

Seen: 781 times

Last updated: Jan 25 '16