Skip to content

Commit d1e8fe9

Browse files
Lucdevyte
Luc
authored andcommitted
Fix compilation with LWIP v2 (esp8266#3822)
1 parent 9f2dcd6 commit d1e8fe9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/ESP8266SSDP/ESP8266SSDP.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ bool SSDPClass::begin(){
201201

202202
void SSDPClass::_send(ssdp_method_t method){
203203
char buffer[1460];
204-
uint32_t ip = WiFi.localIP();
204+
IPAddress ip = WiFi.localIP();
205205

206206
char valueBuffer[strlen_P(_ssdp_notify_template)+1];
207207
strcpy_P(valueBuffer, (method == NONE)?_ssdp_response_template:_ssdp_notify_template);
@@ -214,7 +214,7 @@ void SSDPClass::_send(ssdp_method_t method){
214214
_uuid,
215215
(method == NONE)?"ST":"NT",
216216
_deviceType,
217-
IP2STR(&ip), _port, _schemaURL
217+
ip[0], ip[1], ip[2], ip[3], _port, _schemaURL
218218
);
219219

220220
_server->append(buffer, len);
@@ -244,11 +244,11 @@ void SSDPClass::_send(ssdp_method_t method){
244244
}
245245

246246
void SSDPClass::schema(WiFiClient client){
247-
uint32_t ip = WiFi.localIP();
247+
IPAddress ip = WiFi.localIP();
248248
char buffer[strlen_P(_ssdp_schema_template)+1];
249249
strcpy_P(buffer, _ssdp_schema_template);
250250
client.printf(buffer,
251-
IP2STR(&ip), _port,
251+
ip[0], ip[1], ip[2], ip[3], _port,
252252
_deviceType,
253253
_friendlyName,
254254
_presentationURL,

0 commit comments

Comments
 (0)