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+
|
#else // lwIP-v2+
|
||||||
#define CONST const
|
#define CONST const
|
||||||
#if !LWIP_IPV6
|
#if !LWIP_IPV6
|
||||||
#define ip_addr ipv4_addr
|
struct ip_addr: ipv4_addr { };
|
||||||
#endif // !LWIP_IPV6
|
#endif // !LWIP_IPV6
|
||||||
#endif // lwIP-v2+
|
#endif // lwIP-v2+
|
||||||
|
|
||||||
@ -208,6 +208,4 @@ class IPAddress: public Printable {
|
|||||||
extern CONST IPAddress INADDR_ANY;
|
extern CONST IPAddress INADDR_ANY;
|
||||||
extern const IPAddress INADDR_NONE;
|
extern const IPAddress INADDR_NONE;
|
||||||
|
|
||||||
#include <AddrList.h> // bring interface iterator
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
#include <ESP8266WiFi.h>
|
#include <ESP8266WiFi.h>
|
||||||
|
#include <AddrList.h>
|
||||||
|
|
||||||
#ifndef STASSID
|
#ifndef STASSID
|
||||||
#define STASSID "your-ssid"
|
#define STASSID "your-ssid"
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include <ESP8266WiFi.h>
|
#include <ESP8266WiFi.h>
|
||||||
#include <WiFiUdp.h>
|
#include <WiFiUdp.h>
|
||||||
#include <PolledTimeout.h>
|
#include <PolledTimeout.h>
|
||||||
|
#include <AddrList.h>
|
||||||
#include <lwip/dns.h>
|
#include <lwip/dns.h>
|
||||||
|
|
||||||
#ifndef STASSID
|
#ifndef STASSID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user