From 9b880e7af26dd0e32110cb081078ae7aa25341bc Mon Sep 17 00:00:00 2001 From: Wyatt Neal Date: Sat, 9 Jan 2016 23:25:57 -0500 Subject: [PATCH] only respond to ssdp searches that match our type --- libraries/ESP8266SSDP/ESP8266SSDP.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/ESP8266SSDP/ESP8266SSDP.cpp b/libraries/ESP8266SSDP/ESP8266SSDP.cpp index ae5c7068e..afae3e9fe 100644 --- a/libraries/ESP8266SSDP/ESP8266SSDP.cpp +++ b/libraries/ESP8266SSDP/ESP8266SSDP.cpp @@ -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: