public static void GetSupported(ZWaveNode node) { var message = ZWaveMessage.BuildSendDataRequest(node.Id, new byte[] { (byte)CommandClass.Security, (byte)SecurityCommand.SupportedGet }); SendMessage(node, message); }
private static void SetNetworkKey(ZWaveNode node) { byte[] t_msg = new byte[18]; t_msg[0] = (byte)CommandClass.Security; t_msg[1] = (byte)SecurityCommand.NetworkKeySet; var privateNetworkKey = GetSecurityData(node).GetPrivateNetworkKey(); if (privateNetworkKey == null) { privateNetworkKey = GetSecurityData(node).GeneratePrivateNetworkKey(); } Array.Copy(privateNetworkKey, 0, t_msg, 2, 16); byte[] f_msg = ZWaveMessage.BuildSendDataRequest(node.Id, t_msg); SendMessage(node, f_msg); }