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(); } }
public Task Disconnected() { lock (_lock) { KnxHelper.Logger.LogDebug($"GW {Name} disconnected"); _gwState?.SetGatewayState(false); _tunneling.Stop(); Thread.Sleep(1000); _tunneling.Start(); } return(Task.CompletedTask); }
private void StartConnection() { _tunneling?.Start(); }