mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
better compatibility for IPAddress changes with external libraries (#5438)
This commit is contained in:
parent
e44bcfe8e4
commit
f8f4b81d60
@ -41,7 +41,7 @@
|
||||
#else // lwIP-v2+
|
||||
#define CONST const
|
||||
#if !LWIP_IPV6
|
||||
#define ip_addr ipv4_addr
|
||||
struct ip_addr: ipv4_addr { };
|
||||
#endif // !LWIP_IPV6
|
||||
#endif // lwIP-v2+
|
||||
|
||||
@ -208,6 +208,4 @@ class IPAddress: public Printable {
|
||||
extern CONST IPAddress INADDR_ANY;
|
||||
extern const IPAddress INADDR_NONE;
|
||||
|
||||
#include <AddrList.h> // bring interface iterator
|
||||
|
||||
#endif
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <AddrList.h>
|
||||
|
||||
#ifndef STASSID
|
||||
#define STASSID "your-ssid"
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <WiFiUdp.h>
|
||||
#include <PolledTimeout.h>
|
||||
#include <AddrList.h>
|
||||
#include <lwip/dns.h>
|
||||
|
||||
#ifndef STASSID
|
||||
|
Loading…
x
Reference in New Issue
Block a user