Ejemplo n.º 1
0
        private void Initialization()
        {
            using (var knxClient = new KnxClient(_hostName, _port, _password))
            {
                knxClient.Connect();
                string response = knxClient.SendRequestAndWaitForResponse("i=1");

                Log.Verbose("knx-init-answer: " + response);
            }
        }
Ejemplo n.º 2
0
        public void SendDigitalJoinOn(string identifier)
        {
            if (identifier == null) throw new ArgumentNullException(nameof(identifier));

            lock (_syncRoot)
            {
                using (var knxClient = new KnxClient(_hostName, _port, _password))
                {
                    knxClient.Connect();
                    string response = knxClient.SendRequestAndWaitForResponse(identifier + "=1");

                    Log.Verbose("KnxClient: send-digitalJoinOn: " + response);
                }
            }
        }
Ejemplo n.º 3
0
        public void SendDigitalJoinOff(string identifier)
        {
            if (identifier == null)
            {
                throw new ArgumentNullException(nameof(identifier));
            }

            lock (_syncRoot)
            {
                using (var knxClient = new KnxClient(_hostName, _port, _password))
                {
                    knxClient.Connect();
                    string response = knxClient.SendRequestAndWaitForResponse(identifier + "=0");

                    Log.Verbose("KnxClient: send-digitalJoinOff: " + response);
                }
            }
        }
Ejemplo n.º 4
0
        private void Initialization()
        {
            using (var knxClient = new KnxClient(_hostName, _port, _password))
            {
                knxClient.Connect();
                string response = knxClient.SendRequestAndWaitForResponse("i=1");

                Log.Verbose("knx-init-answer: " + response);
            }
        }