mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
only respond to ssdp searches that match our type
This commit is contained in:
parent
1950b10751
commit
9b880e7af2
@ -321,12 +321,11 @@ void SSDPClass::_update(){
|
||||
DEBUG_SSDP.printf("REJECT: %s\n", (char *)buffer);
|
||||
#endif
|
||||
}
|
||||
// if the search type matches our type, we should respond
|
||||
if(strcmp(buffer, _deviceType)){
|
||||
// if the search type matches our type, we should respond instead of ABORT
|
||||
if(strcmp(buffer, _deviceType) == 0){
|
||||
_pending = true;
|
||||
_process_time = millis();
|
||||
state = KEY;
|
||||
cursor += strlen(_deviceType);
|
||||
}
|
||||
break;
|
||||
case MX:
|
||||
|
Loading…
x
Reference in New Issue
Block a user