Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Namespaces | Functions
net_sync.cpp File Reference
#include "net_sync.h"
#include "watch_config.h"
#include "watch_clock.h"
#include "debug_log.h"
#include "ersa/config/system_defaults.h"
#include "ersa/config/ui_strings.h"
#include "ersa/services/time_service.h"
#include "ersa/services/storage_service.h"
#include "ersa/board/board.h"
#include <time.h>
#include <ctype.h>
#include <atomic>
#include <string>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
Include dependency graph for net_sync.cpp:

Namespaces

namespace  NetSync
 

Functions

void NetSync::begin ()
 
size_t NetSync::eventCount ()
 
const CalEvent & NetSync::getEvent (size_t index)
 
size_t NetSync::todoCount ()
 
const CalTodo & NetSync::getTodo (size_t index)
 
void NetSync::toggleTodo (size_t index)
 
bool NetSync::isSyncing ()
 
const char * NetSync::lastStatus ()
 
time_t NetSync::parseHttpDateToEpoch (const char *str)
 
bool NetSync::fetchHttpUtc (time_t &outUtc, uint32_t timeoutMs=ersa::config::HTTP_TIME_TIMEOUT_MS)
 
bool NetSync::fetchNtpUtc (time_t &outUtc, uint32_t timeoutMs=ersa::config::NTP_SYNC_TIMEOUT_MS)
 
bool NetSync::fetchTimeWithFallbacks (time_t &outUtc, bool &isHttpFallback, bool updateStatus=true)
 
bool NetSync::startBootTimeSync ()
 
void NetSync::tick ()
 
bool NetSync::syncNtp ()
 
bool NetSync::syncAll ()