Skip to content

Commit

Permalink
better compatibility for IPAddress changes with external libraries (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v authored and devyte committed Dec 5, 2018
1 parent e44bcfe commit f8f4b81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cores/esp8266/IPAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -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+

Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#include <ESP8266WiFi.h>
#include <AddrList.h>

#ifndef STASSID
#define STASSID "your-ssid"
Expand Down
1 change: 1 addition & 0 deletions libraries/ESP8266WiFi/examples/IPv6/IPv6.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <PolledTimeout.h>
#include <AddrList.h>
#include <lwip/dns.h>

#ifndef STASSID
Expand Down

0 comments on commit f8f4b81

Please sign in to comment.