Go to the source code of this file.
◆ on_rtc_initialized
typedef void(* on_rtc_initialized) (void) |
Callback called the first time RTC time is aquired from network.
- Note
- It is up to registered module to call RTC_getUTCTime() in the callback
Definition at line 50 of file rtc.h.
◆ rtc_timestamp_t
Definition at line 43 of file rtc.h.
◆ RTC_addInitializeCb()
Add a new callback to be informed when RTC time is available from network.
- Parameters
-
- Returns
- RTC_RES_OK if ok. See rtc_res_e for other result codes.
◆ RTC_getLocalTime()
Get current expected RTC time with timezone from node.
- Parameters
-
now | Current local time if return code is RTC_RES_OK |
- Returns
- Return code of the operation rtc_res_e
◆ RTC_getTimezoneOffsetInSeconds()
rtc_res_e RTC_getTimezoneOffsetInSeconds |
( |
long * |
timezoneOffsetInSeconds | ) |
|
Get configured timezone offset of the node.
- Parameters
-
timezoneOffsetInSeconds | timezone offset of the local time if return code is RTC_RES_OK |
- Returns
- Return code of the operation rtc_res_e
◆ RTC_getUTCTime()
Get current expected RTC time from node.
- Parameters
-
now | Current RTC time if return code is RTC_RES_OK |
- Returns
- Return code of the operation rtc_res_e
- Note
- RTC time must have been received from network in the last 50 days.
◆ RTC_init()
Initialize the stack state library.
- Returns
- Return code of operation
◆ RTC_removeInitializedCb()
Remove an event callback from the list. Removed item fields are all set to 0.
- Parameters
-
callback | callback to remove. |
- Returns
- RTC_RES_OK if ok. See app_res_e for other result codes.
◆ provisioning_data_ids_e
List of Wirepas Ids for TLV encoded provisioning data.
Enumerator |
---|
RTC_ID_TIMESTAMP | |
RTC_ID_TIMEZONE_OFFSET | |
Definition at line 37 of file rtc.h.
◆ rtc_res_e
List of return code.
Enumerator |
---|
RTC_RES_OK | Operation is successful
|
RTC_UNAVAILABLE_YET | RTC is not yet available from network
|
RTC_NO_MORE_CALLBACKS | Cannot register new callback
|
RTC_UNKNOWN_CALLBACK | Callback is not known
|
RTC_INVALID_VALUE | One or more parameter value is invalid
|
RTC_UNINITIALIZED | The library has not been initialized.
|
Definition at line 20 of file rtc.h.
◆ RTC_VERSION
#define RTC_VERSION (uint16_t)(1) |
Definition at line 14 of file rtc.h.