From 1041336135e48439cc480613f8dfda507fe214df Mon Sep 17 00:00:00 2001 From: luc lebosse Date: Sun, 12 Nov 2017 10:53:04 +0100 Subject: [PATCH] Fix compilation with LWIP v2 --- libraries/ESP8266SSDP/ESP8266SSDP.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/ESP8266SSDP/ESP8266SSDP.cpp b/libraries/ESP8266SSDP/ESP8266SSDP.cpp index effece24a9..2c9739709c 100644 --- a/libraries/ESP8266SSDP/ESP8266SSDP.cpp +++ b/libraries/ESP8266SSDP/ESP8266SSDP.cpp @@ -201,7 +201,7 @@ bool SSDPClass::begin(){ void SSDPClass::_send(ssdp_method_t method){ char buffer[1460]; - uint32_t ip = WiFi.localIP(); + IPAddress ip = WiFi.localIP(); char valueBuffer[strlen_P(_ssdp_notify_template)+1]; strcpy_P(valueBuffer, (method == NONE)?_ssdp_response_template:_ssdp_notify_template); @@ -214,7 +214,7 @@ void SSDPClass::_send(ssdp_method_t method){ _uuid, (method == NONE)?"ST":"NT", _deviceType, - IP2STR(&ip), _port, _schemaURL + ip[0], ip[1], ip[2], ip[3], _port, _schemaURL ); _server->append(buffer, len); @@ -244,11 +244,11 @@ void SSDPClass::_send(ssdp_method_t method){ } void SSDPClass::schema(WiFiClient client){ - uint32_t ip = WiFi.localIP(); + IPAddress ip = WiFi.localIP(); char buffer[strlen_P(_ssdp_schema_template)+1]; strcpy_P(buffer, _ssdp_schema_template); client.printf(buffer, - IP2STR(&ip), _port, + ip[0], ip[1], ip[2], ip[3], _port, _deviceType, _friendlyName, _presentationURL,