public SupportCommandClass ( CommandClass commandClass ) : bool | ||
commandClass | CommandClass | Command Class |
return | bool |
public void GetNodeCcsVersion(ZWaveNode zn) { // If node support version command class, query each one for its version. if (zn.SupportCommandClass(CommandClass.Version)) { foreach (var cmdClass in zn.CommandClasses) { if (controllerStatus != ControllerStatus.Ready || !serialPort.IsConnected) break; // if not cached query the node. if (cmdClass.CommandClass != CommandClass.NotSet && cmdClass.Version == -1) ZWaveLib.CommandClasses.Version.Get(zn, cmdClass.CommandClass).Wait(); } } }
public void GetNodeCcsVersion(ZWaveNode zn) { // If node support version command class, query each one for its version. if (zn.SupportCommandClass(CommandClass.Version)) { foreach (var cmdClass in zn.CommandClasses) { // if not cached query the node. if (cmdClass.Version == 0) ZWaveLib.CommandClasses.Version.Get(zn, cmdClass.CommandClass).Wait(); } } }