@@ -201,7 +201,7 @@ bool SSDPClass::begin(){
201
201
202
202
void SSDPClass::_send (ssdp_method_t method){
203
203
char buffer[1460 ];
204
- uint32_t ip = WiFi.localIP ();
204
+ IPAddress ip = WiFi.localIP ();
205
205
206
206
char valueBuffer[strlen_P (_ssdp_notify_template)+1 ];
207
207
strcpy_P (valueBuffer, (method == NONE)?_ssdp_response_template:_ssdp_notify_template);
@@ -214,7 +214,7 @@ void SSDPClass::_send(ssdp_method_t method){
214
214
_uuid,
215
215
(method == NONE)?" ST" :" NT" ,
216
216
_deviceType,
217
- IP2STR (&ip) , _port, _schemaURL
217
+ ip[ 0 ], ip[ 1 ], ip[ 2 ], ip[ 3 ] , _port, _schemaURL
218
218
);
219
219
220
220
_server->append (buffer, len);
@@ -244,11 +244,11 @@ void SSDPClass::_send(ssdp_method_t method){
244
244
}
245
245
246
246
void SSDPClass::schema (WiFiClient client){
247
- uint32_t ip = WiFi.localIP ();
247
+ IPAddress ip = WiFi.localIP ();
248
248
char buffer[strlen_P (_ssdp_schema_template)+1 ];
249
249
strcpy_P (buffer, _ssdp_schema_template);
250
250
client.printf (buffer,
251
- IP2STR (&ip) , _port,
251
+ ip[ 0 ], ip[ 1 ], ip[ 2 ], ip[ 3 ] , _port,
252
252
_deviceType,
253
253
_friendlyName,
254
254
_presentationURL,
0 commit comments