Updated XBee sample