zwNode Class
This class is used by ozw to manage valueids for a node (device). No user-serviceable parts inside. It is not exposed to the end user.
Item Index
Methods
zwNode
-
homeId
-
nodeId
zwNode constructor.
Parameters:
-
homeId
Numberthe homeId os the network controller
-
nodeId
Numberthe node index
Returns:
nodeId
()
Number
get the nodeId
Returns:
The nodeId for this node
homeId
()
Number
get the homeId
Returns:
The homeId for this node
addValueID
-
vid
Add an OpenZWave ValueID and index to the value map, incrementing m_vindex.
Parameters:
-
vid
OpenZWave::ValueIDThe OpenZWave ValueID
removeValueID
-
vid
Remove an OpenZWave ValueID from the value map.
Parameters:
-
vid
OpenZWave::ValueIDThe OpenZWave ValueID
indexToValueID
-
index
-
vid
Lookup and return a ValueID corresponding to an index.
Parameters:
-
index
Numberthe index to look up
-
vid
OpenZWave::ValueID *The pointer to the returned ValueID, if it exists
Returns:
true if the index was found, false otherwise
dumpNode
-
all
Dump various information about the ValueIDs stored in this node.
Parameters:
-
all
Booleantrue to dump all values, false to limit dumping only 'user' values.
updateVIDMap
()
Clear the VID map, sort the list containing registered VID's, and re-create the VID map. The goal is to ensure that the Map is always sorted in acsending order by VID.
setAutoUpdate
-
enable
When enabled, updateVIDMap() will be called every time a new VID is inserted or removed. This is disabled by default for performance reasons during init() time. Once the driver is initialized, then this option is, by default enabled so that the VID map is always kept in a sorted order.
Parameters:
-
enable
Booleantrue to enable, false to disable.