2021-09-24 03:57:06 -04:00
|
|
|
/*
|
2022-08-22 06:30:24 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
2021-09-24 03:57:06 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Update the system time from time stored in NVS.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
esp_err_t update_time_from_nvs(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Fetch the current time from SNTP and stores it in NVS.
|
|
|
|
*
|
|
|
|
*/
|
2022-08-22 06:30:24 -04:00
|
|
|
esp_err_t fetch_and_store_time_in_nvs(void*);
|
2021-09-24 03:57:06 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|