Exemplo n.º 1
0
        private void KnxDisconnectedEvent(object sender, EventArgs eventArgs)
        {
            lock (_lock)
            {
                KnxHelper.Logger.LogDebug($"GW  {Name} disconnected");
                _gwState?.SetGatewayState(false);

                _tunneling.Stop();
                Thread.Sleep(1000);

                _tunneling.Start();
            }
        }
Exemplo n.º 2
0
        public Task Disconnected()
        {
            lock (_lock)
            {
                KnxHelper.Logger.LogDebug($"GW  {Name} disconnected");
                _gwState?.SetGatewayState(false);

                _tunneling.Stop();
                Thread.Sleep(1000);

                _tunneling.Start();
            }

            return(Task.CompletedTask);
        }
Exemplo n.º 3
0
 private void StartConnection()
 {
     _tunneling?.Start();
 }