Пример #1
0
        public void Initialize()
        {
            _button = new XBeeButton(1);
            _button.ButtonHandler += _button_ButtonHandler;

            _xBee = new XBee();
            _xBee.StatusReceived += _button.StatusReceived;
        }
Пример #2
0
        public static void Main()
        {
            new Listener(RequestReceived);

            _xBee = new XBee();
            _xBee.FrameReceived += XBeeFrameReceived;

            Thread.Sleep(Timeout.Infinite);
        }