Gateway between XBee(API) and IP network