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); } }
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); } } }
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); } } }