Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TTony5
New Contributor I
961 Views

¿Xbee example Java code?

Jump to solution

Hi,

Does anyone know where to find example Java code for using the UPM XBee libraries to use with the Intel Edison?

I have searched on https://github.com/intel-iot-devkit/upm GitHub - intel-iot-devkit/upm and http://iotdk.intel.com/docs/master/upm/java/classupm__xbee_1_1_x_bee.html# details upm: XBee Class Reference but it seems there are no examples there.

Tony

1 Solution
Pedro_M_Intel
Employee
70 Views

Hello TonyMontes,

Currently an example of xbee using Java hasn't been posted, however the upm- xbee library is available to use. You can find all the commands available in the document you posted above: http://iotdk.intel.com/docs/master/upm/java/classupm__xbee_1_1_x_bee.html# details upm: XBee Class Reference.

Even though there are no examples for Java, there is an example for C++ (https://github.com/intel-iot-devkit/upm/blob/master/examples/c%2B%2B/xbee.cxx xbee.cxx), Python (https://github.com/intel-iot-devkit/upm/blob/master/examples/python/xbee.py xbee.py) and JavaScript (https://github.com/intel-iot-devkit/upm/blob/master/examples/javascript/xbee.js xbee.js), this is probably because support to Java in mraa (and therefore upm) was added in one of its recent updates. In case you are interested in using Java, you could take any of these examples as your base to write your own script in Java. You could also contact the upm developers to ask them to add an xbee example in https://github.com/intel-iot-devkit/upm/issues Issues · intel-iot-devkit/upm · GitHub.

Peter.

View solution in original post

1 Reply
Pedro_M_Intel
Employee
71 Views

Hello TonyMontes,

Currently an example of xbee using Java hasn't been posted, however the upm- xbee library is available to use. You can find all the commands available in the document you posted above: http://iotdk.intel.com/docs/master/upm/java/classupm__xbee_1_1_x_bee.html# details upm: XBee Class Reference.

Even though there are no examples for Java, there is an example for C++ (https://github.com/intel-iot-devkit/upm/blob/master/examples/c%2B%2B/xbee.cxx xbee.cxx), Python (https://github.com/intel-iot-devkit/upm/blob/master/examples/python/xbee.py xbee.py) and JavaScript (https://github.com/intel-iot-devkit/upm/blob/master/examples/javascript/xbee.js xbee.js), this is probably because support to Java in mraa (and therefore upm) was added in one of its recent updates. In case you are interested in using Java, you could take any of these examples as your base to write your own script in Java. You could also contact the upm developers to ask them to add an xbee example in https://github.com/intel-iot-devkit/upm/issues Issues · intel-iot-devkit/upm · GitHub.

Peter.

View solution in original post

Reply