andrewrapp / xbee-arduino

Arduino library for communicating with XBee radios in API mode
GNU General Public License v2.0
334 stars 162 forks source link

getting hardware serial #16

Open misilot opened 8 years ago

misilot commented 8 years ago

Hi,

Is it possible to get the hardware serial of the device connected to the ardunio?

matthijskooijman commented 8 years ago

With hardware serial, you mean the 64-bit device address of the XBee device? If so, you can use the SH and SL AT commands to query it. For an example, see https://github.com/andrewrapp/xbee-arduino/blob/master/examples/ZdpScan/ZdpScan.ino#L299-L307

davidsainty commented 8 years ago

I guess more likely means the lack of a getSerial() to match setSerial()