Z-Wave Protocol Controller Reference
network_monitor_utils.h File Reference
#include "attribute_store.h"
#include "zwave_utils.h"
#include "zwave_generic_types.h"
Include dependency graph for network_monitor_utils.h:

Go to the source code of this file.

Functions

bool network_monitor_is_node_asleep_due_to_inactivity (attribute_store_node_t node_id_node, int32_t inactive_time)
 Checks if we had a long tx/rx inactivity that would result in an NL node falling asleep. More...
 
zwave_operating_mode_t network_monitor_get_operating_mode (attribute_store_node_t node_id_node)
 Gets the Z-Wave operating mode () from the Attribute Store Node for the NodeID. More...
 

Function Documentation

◆ network_monitor_get_operating_mode()

zwave_operating_mode_t network_monitor_get_operating_mode ( attribute_store_node_t  node_id_node)

Gets the Z-Wave operating mode () from the Attribute Store Node for the NodeID.

Parameters
node_id_nodeNodeID node in the attribute store.
Returns
zwave_operating_mode_t

◆ network_monitor_is_node_asleep_due_to_inactivity()

bool network_monitor_is_node_asleep_due_to_inactivity ( attribute_store_node_t  node_id_node,
int32_t  inactive_time 
)

Checks if we had a long tx/rx inactivity that would result in an NL node falling asleep.

Parameters
node_id_nodeAttribute Store Node for the NodeID
inactive_timetime span in seconds of the node being inactive
Returns
true if the last tx/rx is too old and we should consider the node asleep now.