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

                Log.Default.Verbose("knx-init-answer: " + response);
            }
        }
Exemplo n.º 2
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.Default.Verbose("KnxClient: send-digitalJoinOff: " + response);
                }
            }
        }