Unify Framework Lib 1.6.0
unify::node_state_monitor::node Class Reference

Unify Node. More...

#include <unify_node_state_monitor.hpp>

Public Member Functions

 node (const std::string &_unid)
 Construct a new node object. More...
 
endpointemplace_endpoint (endpoint_id_t endpoint_id)
 Create a new endpoint in the endpoint map and return a reference to it. If the endpoint_id alredy exist in the map return a reference to that instead. More...
 
std::string to_string () const
 Get a string representation of the node. More...
 

Public Attributes

std::string unid
 
uint32_t state = 4
 
uint32_t security_info
 
std::unordered_map< endpoint_id_t, endpointendpoints
 
clock_time_t last_update
 

Detailed Description

Unify Node.

Constructor & Destructor Documentation

◆ node()

unify::node_state_monitor::node::node ( const std::string &  _unid)
inlineexplicit

Construct a new node object.

When creating a new node, the state is set to ZCL_NODE_STATE_NETWORK_STATUS_OFFLINE.

Parameters
_unidUNID of the node.

Member Function Documentation

◆ emplace_endpoint()

endpoint & unify::node_state_monitor::node::emplace_endpoint ( endpoint_id_t  endpoint_id)

Create a new endpoint in the endpoint map and return a reference to it. If the endpoint_id alredy exist in the map return a reference to that instead.

Parameters
endpoint_id
Returns
endpoint&

◆ to_string()

std::string unify::node_state_monitor::node::to_string ( ) const

Get a string representation of the node.

Returns
std::string.

Member Data Documentation

◆ endpoints

std::unordered_map<endpoint_id_t, endpoint> unify::node_state_monitor::node::endpoints

Map of all endpoints under the node, the key to the map is the endpoint identifier.

◆ last_update

clock_time_t unify::node_state_monitor::node::last_update

Time for last update of the node.

◆ security_info

uint32_t unify::node_state_monitor::node::security_info

Node Security.

◆ state

uint32_t unify::node_state_monitor::node::state = 4

Node State.

◆ unid

std::string unify::node_state_monitor::node::unid

Node UNID.


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