Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Classes | Functions
WatchConfig Namespace Reference

Classes

struct  Config
 

Functions

void resetDefaults ()
 
void begin ()
 
const Config & get ()
 
void setWifi (const char *ssid, const char *pass)
 
void setCalDav (const char *server, const char *user, const char *pass, const char *calendar, const char *todoPath)
 
void setTimezone (int16_t offsetMinutes)
 
void setTimeFormat (bool military24h)
 
void setApConfig (const char *ssid, const char *pass, uint16_t timeoutSec)
 
bool save ()
 

Function Documentation

◆ begin()

void WatchConfig::begin ( )

Load persisted values, validate ranges, and create defaults on first boot.

◆ get()

const Config & WatchConfig::get ( )

Return the process-wide immutable current settings snapshot.

◆ resetDefaults()

void WatchConfig::resetDefaults ( )

Restore compiled defaults and persist them to storage.

◆ save()

bool WatchConfig::save ( )

Persist the active settings snapshot to nonvolatile storage.

◆ setApConfig()

void WatchConfig::setApConfig ( const char *  ssid,
const char *  pass,
uint16_t  timeoutSec 
)

Set configuration access point credentials and idle timeout.

◆ setCalDav()

void WatchConfig::setCalDav ( const char *  server,
const char *  user,
const char *  pass,
const char *  calendar,
const char *  todoPath 
)

Set CalDAV endpoint/account and collection paths.

◆ setTimeFormat()

void WatchConfig::setTimeFormat ( bool  military24h)

Select 24-hour or 12-hour display formatting.

◆ setTimezone()

void WatchConfig::setTimezone ( int16_t  offsetMinutes)

Set local UTC offset in minutes, within the supported civil-time range.

◆ setWifi()

void WatchConfig::setWifi ( const char *  ssid,
const char *  pass 
)

Set station credentials, truncating safely to fixed config capacities.