1
0
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:
david gauchard 2018-12-05 03:32:24 +01:00 committed by Develo
parent e44bcfe8e4
commit f8f4b81d60
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,5 +1,6 @@
#include <ESP8266WiFi.h>
#include <AddrList.h>
#ifndef STASSID
#define STASSID "your-ssid"

View File

@ -19,6 +19,7 @@
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <PolledTimeout.h>
#include <AddrList.h>
#include <lwip/dns.h>
#ifndef STASSID