Skip to content

Commit bdf5b99

Browse files
committed
fota:add API to set custom server check interval
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent b4eac41 commit bdf5b99

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

include/fota.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@ int fota_in_progress(void);
5555
*/
5656
int logicrom_fota_register(const char *code, const char *ver);
5757

58+
/**
59+
* @brief Set fota check interval
60+
*
61+
* @param hours interval value in hours
62+
* @return return 0 on success, negative value on error
63+
*/
64+
int fota_set_interval(int hours);
65+
66+
/**
67+
* @brief Get current fota check interval
68+
*
69+
* @return return fota interval in hours
70+
*/
71+
int fota_get_interval(void);
72+
5873
#ifdef __cplusplus
5974
}
6075
#endif

0 commit comments

Comments
 (0)