Esempio n. 1
0
 public KnxNetIpRoutingClient(IPEndPoint remoteEndPoint, KnxDeviceAddress deviceAddress, KnxNetIpConfiguration configuration = null) : base(remoteEndPoint, deviceAddress, configuration)
 {
 }
        public KnxNetIpTunnelingClient(IPEndPoint remoteEndPoint, KnxDeviceAddress deviceAddress, KnxNetIpConfiguration configuration = null) : base(remoteEndPoint, deviceAddress, configuration)
        {
            ConnectionStateTimeStamp = DateTime.MinValue;

            _keepAliveTimer = new System.Timers.Timer(59000)
            {
                Enabled = false, AutoReset = true
            };
            _keepAliveTimer.Elapsed += async(sender, args) => await SendKeepAliveMessage();
        }
Esempio n. 3
0
 public KnxNetIpRoutingClient(KnxNetIpConfiguration configuration = null) : this(new IPEndPoint(IPAddress.Parse("224.0.23.12"), 3671), new KnxDeviceAddress(0, 0, 0), configuration)
 {
 }
Esempio n. 4
0
        protected KnxNetIpClient(IPEndPoint remoteEndPoint, KnxDeviceAddress deviceAddress, KnxNetIpConfiguration configuration = null)
        {
            Configuration  = configuration ?? new KnxNetIpConfiguration();
            RemoteEndPoint = remoteEndPoint ?? throw new ArgumentNullException(nameof(remoteEndPoint));
            DeviceAddress  = deviceAddress;

            UdpClient = new UdpClient();
        }