mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
SNTP: Add function to get SNTP enabled state
This commit is contained in:
parent
4bd57882b0
commit
d70d9bf866
@ -571,6 +571,14 @@ sntp_stop(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get enabled state.
|
||||||
|
*/
|
||||||
|
u8_t sntp_enabled(void)
|
||||||
|
{
|
||||||
|
return (sntp_pcb != NULL)? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the operating mode.
|
* Sets the operating mode.
|
||||||
* @param operating_mode one of the available operating modes
|
* @param operating_mode one of the available operating modes
|
||||||
|
@ -48,6 +48,7 @@ u8_t sntp_getoperatingmode(void);
|
|||||||
|
|
||||||
void sntp_init(void);
|
void sntp_init(void);
|
||||||
void sntp_stop(void);
|
void sntp_stop(void);
|
||||||
|
u8_t sntp_enabled(void);
|
||||||
|
|
||||||
void sntp_setserver(u8_t idx, const ip_addr_t *addr);
|
void sntp_setserver(u8_t idx, const ip_addr_t *addr);
|
||||||
ip_addr_t sntp_getserver(u8_t idx);
|
ip_addr_t sntp_getserver(u8_t idx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user