Ejemplo n.º 1
0
 public RelayServer(HardwareManager hm)
 {
     _hm = hm;
     _relayNodeProducer = null;
     _bus = new AllJoynBusAttachment();
     StartService();
 }
Ejemplo n.º 2
0
 public RelayServer(HardwareManager hm)
 {
     _hm = hm;
     _relayNodeProducer = null;
     _bus = new AllJoynBusAttachment();
     StartService();
 }
Ejemplo n.º 3
0
        private async Task InitializeHardware()
        {
            _hm = new HardwareManager();
            await _hm.Initialize();

            _relayServer = new RelayServer(_hm);

            //_timer = new DispatcherTimer();
            //_timer.Interval = TimeSpan.FromSeconds(0.5);
            //_timer.Tick += _timer_Tick;
            //_timer.Start();
        }
        private async Task InitializeHardware()
        {
            _hm = new HardwareManager();
            await _hm.Initialize();

            _relayServer = new RelayServer(_hm);

            //_timer = new DispatcherTimer();
            //_timer.Interval = TimeSpan.FromSeconds(0.5);
            //_timer.Tick += _timer_Tick;
            //_timer.Start();
        }
 public relaynodeService(HardwareManager hm, relaynodeSignals signals)
 {
     _hm = hm;
     _hm.ButtonPressed += _hm_ButtonPressed;
     _relayNodeSignals  = signals;
 }
 public relaynodeService(HardwareManager hm, relaynodeSignals signals)
 {
     _hm = hm;
     _hm.ButtonPressed += _hm_ButtonPressed;
     _relayNodeSignals = signals;
 }