AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
painlessmesh::layout::Layout< T > Class Template Reference

#include <layout.hpp>

Inheritance diagram for painlessmesh::layout::Layout< T >:
Inheritance graph
[legend]

Public Member Functions

uint32_t getNodeId () const
 
bool isRoot () const
 
protocol::NodeTree asNodeTree ()
 

Public Attributes

size_t stability = 0
 
std::list< std::shared_ptr< T > > subs
 

Protected Attributes

uint32_t nodeId = 0
 
bool root = false
 
bool hasTimeAuthority = false
 

Member Function Documentation

◆ asNodeTree()

template<class T >
protocol::NodeTree painlessmesh::layout::Layout< T >::asNodeTree ( )
inline

◆ getNodeId()

template<class T >
uint32_t painlessmesh::layout::Layout< T >::getNodeId ( ) const
inline

Return the nodeId of the node that we are running on.

On the ESP hardware nodeId is uniquely calculated from the MAC address of the node.

◆ isRoot()

template<class T >
bool painlessmesh::layout::Layout< T >::isRoot ( ) const
inline

Check whether this node is a root node.

Member Data Documentation

◆ hasTimeAuthority

template<class T >
bool painlessmesh::layout::Layout< T >::hasTimeAuthority = false
protected

◆ nodeId

template<class T >
uint32_t painlessmesh::layout::Layout< T >::nodeId = 0
protected

◆ root

template<class T >
bool painlessmesh::layout::Layout< T >::root = false
protected

◆ stability

template<class T >
size_t painlessmesh::layout::Layout< T >::stability = 0

◆ subs

template<class T >
std::list<std::shared_ptr<T> > painlessmesh::layout::Layout< T >::subs

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