Beispiel #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();
            }
        }
Beispiel #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);
        }
Beispiel #3
0
 private void StartConnection()
 {
     _tunneling?.Start();
 }