Skip to content

Commit 621cf5b

Browse files
maass-hamburgfabiobaltieri
authored andcommitted
mgmt: hawkbit: get poll interval
Add function to get the poll interval. This is needed to seperate the autohandler from the main hawkbit code. Signed-off-by: Fin Maaß <[email protected]>
1 parent a71fc66 commit 621cf5b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

include/zephyr/mgmt/hawkbit.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,13 @@ static inline sec_tag_t hawkbit_get_tls_tag(void)
310310
*/
311311
int32_t hawkbit_get_action_id(void);
312312

313+
/**
314+
* @brief Get the hawkBit poll interval.
315+
*
316+
* @return Poll interval.
317+
*/
318+
uint32_t hawkbit_get_poll_interval(void);
319+
313320
/**
314321
* @brief Resets the hawkBit action id, that is saved in settings.
315322
*

subsys/mgmt/hawkbit/hawkbit.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ int32_t hawkbit_get_action_id(void)
506506
return hb_cfg.action_id;
507507
}
508508

509+
uint32_t hawkbit_get_poll_interval(void)
510+
{
511+
return poll_sleep;
512+
}
513+
509514
/*
510515
* Update sleep interval, based on results from hawkBit base polling
511516
* resource

0 commit comments

Comments
 (0)