jankolkmeier / svd-xbee

Node talks to xbee radios through serialport
40 stars 14 forks source link

Allow for setting baud rate when connecting #1

Closed msealand closed 12 years ago

msealand commented 12 years ago

Just a simple change to allow for setting the baud rate when connecting to the xbee.

Description of changes:

Change the port parameter in the XBee constructor to an options object which contains the port and optionally a baud rate. If a string is passed in for the options parameter, assume it is the port for backwards compatibility. If no baud rate is passed in, default to 57600 for backwards compatibility.