AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
painlessmesh::ntp::MeshTime Class Reference

#include <ntp.hpp>

Inheritance diagram for painlessmesh::ntp::MeshTime:
Inheritance graph
[legend]

Public Member Functions

uint32_t getNodeTime ()
 

Public Attributes

uint32_t timeOffset = 0
 

Member Function Documentation

◆ getNodeTime()

uint32_t painlessmesh::ntp::MeshTime::getNodeTime ( )
inline

Returns the mesh time in microsecond precision.

Time rolls over every 71 minutes.

Nodes try to keep a common time base synchronizing to each other using [an SNTP based protocol](https://gitlab.com/painlessMesh/painlessMesh/wikis/mesh-protocol#time-sync)

Member Data Documentation

◆ timeOffset

uint32_t painlessmesh::ntp::MeshTime::timeOffset = 0

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