AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
ntp.hpp File Reference
#include "Arduino.h"
#include "painlessmesh/callback.hpp"
#include "painlessmesh/logger.hpp"
#include "painlessmesh/router.hpp"
Include dependency graph for ntp.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  painlessmesh::ntp::MeshTime
 

Namespaces

namespace  painlessmesh
 
namespace  painlessmesh::ntp
 

Macros

#define TIME_SYNC_INTERVAL   1 * TASK_MINUTE
 
#define TIME_SYNC_ACCURACY   5000
 
#define MIN_LARGE_OFFSET_STEP   500
 
#define MAX_CPU_TRIP_RATIO    85
 

Functions

int32_t painlessmesh::ntp::clockOffset (uint32_t time0, uint32_t time1, uint32_t time2, uint32_t time3)
 
int32_t painlessmesh::ntp::tripDelay (uint32_t time0, uint32_t time1, uint32_t time2, uint32_t time3)
 
bool painlessmesh::ntp::adopt (protocol::NodeTree mesh, protocol::NodeTree connection)
 
template<class T >
void painlessmesh::ntp::initTimeSync (protocol::NodeTree mesh, std::shared_ptr< T > connection, uint32_t nodeTime)
 
template<class T , class U >
void painlessmesh::ntp::handleTimeSync (T &mesh, painlessmesh::protocol::TimeSync timeSync, std::shared_ptr< U > conn, uint32_t receivedAt)
 
template<class T , class U >
void painlessmesh::ntp::handleTimeDelay (T &mesh, painlessmesh::protocol::TimeDelay timeDelay, std::shared_ptr< U > conn, uint32_t receivedAt)
 
template<class T , typename U >
void painlessmesh::ntp::addPackageCallback (callback::MeshPackageCallbackList< U > &callbackList, T &mesh)
 

Variables

painlessmesh::logger::LogClass Log
 

Macro Definition Documentation

◆ MAX_CPU_TRIP_RATIO

#define MAX_CPU_TRIP_RATIO    85

◆ MIN_LARGE_OFFSET_STEP

#define MIN_LARGE_OFFSET_STEP   500

◆ TIME_SYNC_ACCURACY

#define TIME_SYNC_ACCURACY   5000

◆ TIME_SYNC_INTERVAL

#define TIME_SYNC_INTERVAL   1 * TASK_MINUTE

Variable Documentation

◆ Log