|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
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 () |
| void WatchConfig::begin | ( | ) |
Load persisted values, validate ranges, and create defaults on first boot.
| const Config & WatchConfig::get | ( | ) |
Return the process-wide immutable current settings snapshot.
| void WatchConfig::resetDefaults | ( | ) |
Restore compiled defaults and persist them to storage.
| bool WatchConfig::save | ( | ) |
Persist the active settings snapshot to nonvolatile storage.
| void WatchConfig::setApConfig | ( | const char * | ssid, |
| const char * | pass, | ||
| uint16_t | timeoutSec | ||
| ) |
Set configuration access point credentials and idle timeout.
| 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.
| void WatchConfig::setTimeFormat | ( | bool | military24h | ) |
Select 24-hour or 12-hour display formatting.
| void WatchConfig::setTimezone | ( | int16_t | offsetMinutes | ) |
Set local UTC offset in minutes, within the supported civil-time range.
| void WatchConfig::setWifi | ( | const char * | ssid, |
| const char * | pass | ||
| ) |
Set station credentials, truncating safely to fixed config capacities.