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.
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.