mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
IPv6 on esp8266-nonos-sdk and arduino (#5136)
This commit is contained in:
@ -2,10 +2,14 @@
|
||||
#define __SNTP_H__
|
||||
|
||||
#include "os_type.h"
|
||||
#ifdef LWIP_OPEN_SRC
|
||||
|
||||
#include "lwip/init.h"
|
||||
#include "lwip/ip_addr.h"
|
||||
|
||||
#if LWIP_VERSION_MAJOR == 1
|
||||
#define ipv4_addr_t ip_addr_t
|
||||
#else
|
||||
#include "ip_addr.h"
|
||||
typedef struct ip4_addr ipv4_addr_t;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -43,15 +47,15 @@ void sntp_stop(void);
|
||||
* @param numdns the index of the NTP server to set must be < SNTP_MAX_SERVERS
|
||||
* @param dnsserver IP address of the NTP server to set
|
||||
*/
|
||||
void sntp_setserver(unsigned char idx, ip_addr_t *addr);
|
||||
void sntp_setserver(unsigned char idx, ipv4_addr_t *addr);
|
||||
/**
|
||||
* Obtain one of the currently configured by IP address (or DHCP) NTP servers
|
||||
*
|
||||
* @param numdns the index of the NTP server
|
||||
* @return IP address of the indexed NTP server or "ip_addr_any" if the NTP
|
||||
* @return IP address of the indexed NTP server or "ipv4_addr_any" if the NTP
|
||||
* server has not been configured by address (or at all).
|
||||
*/
|
||||
ip_addr_t sntp_getserver(unsigned char idx);
|
||||
ipv4_addr_t sntp_getserver(unsigned char idx);
|
||||
/**
|
||||
* Initialize one of the NTP servers by name
|
||||
*
|
||||
|
Reference in New Issue
Block a user