oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
net_sntp.hpp File Reference

C++ wrappers for the oveRTOS SNTP client API. More...

#include <ove/net_sntp.h>
#include <ove/error.hpp>
Include dependency graph for net_sntp.hpp:

Go to the source code of this file.

Classes

struct  ove::sntp::Config
 SNTP client configuration with C++ defaults. More...
 

Namespaces

namespace  ove
 Top-level namespace for all oveRTOS C++ abstractions.
 
namespace  ove::sntp
 C++ wrappers around the oveRTOS SNTP client API.
 

Functions

Result< void > ove::sntp::sync (const Config &cfg={}) noexcept
 Synchronize with an NTP time server.
 
Result< int64_t > ove::sntp::get_offset_us () noexcept
 Get the UTC offset from the last successful sync.
 
Result< uint32_t > ove::sntp::get_utc () noexcept
 Get current UTC time in seconds since Unix epoch.
 

Detailed Description

C++ wrappers for the oveRTOS SNTP client API.