| 20 | #ifdef ESP_PLATFORM |
| 21 | |
| 22 | void storeTimeInNvs() { |
| 23 | time_t now; |
| 24 | time(&now); |
| 25 | |
| 26 | auto preferences = std::make_unique<Preferences>("time"); |
| 27 | preferences->putInt64("syncTime", now); |
| 28 | LOGGER.info("Stored time {}", now); |
| 29 | } |
| 30 | |
| 31 | void setTimeFromNvs() { |
| 32 | auto preferences = std::make_unique<Preferences>("time"); |
no test coverage detected