1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

only respond to ssdp searches that match our type

This commit is contained in:
Wyatt Neal 2016-01-09 23:25:57 -05:00
parent 1950b10751
commit 9b880e7af2

View File

@ -321,12 +321,11 @@ void SSDPClass::_update(){
DEBUG_SSDP.printf("REJECT: %s\n", (char *)buffer); DEBUG_SSDP.printf("REJECT: %s\n", (char *)buffer);
#endif #endif
} }
// if the search type matches our type, we should respond // if the search type matches our type, we should respond instead of ABORT
if(strcmp(buffer, _deviceType)){ if(strcmp(buffer, _deviceType) == 0){
_pending = true; _pending = true;
_process_time = millis(); _process_time = millis();
state = KEY; state = KEY;
cursor += strlen(_deviceType);
} }
break; break;
case MX: case MX: