public void Initialize() { _button = new XBeeButton(1); _button.ButtonHandler += _button_ButtonHandler; _xBee = new XBee(); _xBee.StatusReceived += _button.StatusReceived; }
public static void Main() { new Listener(RequestReceived); _xBee = new XBee(); _xBee.FrameReceived += XBeeFrameReceived; Thread.Sleep(Timeout.Infinite); }