upm  0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions
zwNode Class Reference

Public Types

typedef std::map< int,
OpenZWave::ValueID > 
valueMap_t
 

Public Member Functions

 zwNode (uint32_t homeId, uint8_t nodeId)
 
uint8_t nodeId ()
 
uint32_t homeId ()
 
void addValueID (OpenZWave::ValueID vid)
 
void removeValueID (OpenZWave::ValueID vid)
 
bool indexToValueID (int index, OpenZWave::ValueID *vid)
 
void dumpNode (bool all=false)
 

Constructor & Destructor Documentation

zwNode ( uint32_t  homeId,
uint8_t  nodeId 
)

zwNode contructor.

Parameters
homeIdthe homeId os the network controller
nodeIdthe node index

Member Function Documentation

uint8_t nodeId ( )

get the nodeId

Returns
The nodeId for this node
uint32_t homeId ( )

get the homeId

Returns
The homeId for this node
void addValueID ( OpenZWave::ValueID  vid)

Add an OpenZWave ValueID and index to the value map, incrementing m_vindex.

Parameters
vidThe OpenZWave ValueID
void removeValueID ( OpenZWave::ValueID  vid)

Remove an OpenZWave ValueID from the value map.

Parameters
vidThe OpenZWave ValueID
bool indexToValueID ( int  index,
OpenZWave::ValueID *  vid 
)

Lookup and return a ValueID corresponding to an index.

Parameters
indexthe index to look up
vidThe pointer to the returned ValueID, if it exists
Returns
true if the index was found, false otherwise
void dumpNode ( bool  all = false)

Dump various information about the ValueIDs stored in this node.

Parameters
alltrue to dump all values, false to limit dumping only 'user' values.

The documentation for this class was generated from the following files: