Have you tried using UPM library? UPM is a repository for sensors and actuators that use MRAA lib. Here is a sample code in python https://github.com/intel-iot-devkit/upm/blob/master/examples/python/xbee.py
I didn't test it, but worth a shot..
Hey It did not work.
Should the xbee , on the receiver end, be in AT mode or API mode ?will it make any difference?
Any other solutions ?
Sorry it didn't work. Since I don't have an xbee, my only way of helping you is through other threads or repositories. I found a great response from DiegoV_Intel xbee library for galileo gen 2
When you used serialport.on or related commands, did you specified what port you are using ?like D0, D1 to communicate with XBee you have to use Serial1 instead of Serial. (credits to cMartu on thread Galileo beginner - Where to find basic information)
Apparently this is important when you use UART (I'm not sure about that, someone in the community please confirm).
Hope it helps
I mean there serial1 is the default UART port and it's number is 0(in c(eclipse) and javacript(intel xdk)), but are u talking in specific with arduino or in general?
I would like to know if you have been able to work on this.
Which libraries versions are you using?
Which image are you using?
image is meta-clanton latest version..
And regarding the version of serialport, I had very recently installed it using npm so i hope it is the latest version.
But does it depend on the version of the serialport?
How have you installed and tested the serialport library? Have you already seen this link GitHub - voodootikigod/node-serialport: Node.js package to access serial ports for reading and writing OR Welcome your r… ?
Were you able to try our latest suggestion, did you see the link we posted?