From fc1893521fb3794efeddf466b9fb41e312f925ce Mon Sep 17 00:00:00 2001 From: Stefan Kremser Date: Mon, 27 Feb 2017 21:20:15 +0100 Subject: [PATCH] Reduced the AP scan max results --- esp8266_deauther/APScan.cpp | 31 +++++++++++++++++++++++++-- esp8266_deauther/APScan.h | 2 +- esp8266_deauther/Settings.cpp | 7 +++--- esp8266_deauther/esp8266_deauther.ino | 2 +- 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/esp8266_deauther/APScan.cpp b/esp8266_deauther/APScan.cpp index 5a3011e..3475c3c 100644 --- a/esp8266_deauther/APScan.cpp +++ b/esp8266_deauther/APScan.cpp @@ -34,11 +34,38 @@ bool APScan::start(){ Serial.print(getEncryption(encryption[i])); Serial.print(" - "); Serial.print(names[i]); - /*Serial.print(" - "); - Serial.print(vendors[i]);*/ + //Serial.print(" - "); + //Serial.print(vendors[i]); Serial.println(); } } + + //for debugging the APScan crash bug + /*if(debug){ + for(int i=results;i #include "Mac.h" diff --git a/esp8266_deauther/Settings.cpp b/esp8266_deauther/Settings.cpp index 4dde409..93d7902 100644 --- a/esp8266_deauther/Settings.cpp +++ b/esp8266_deauther/Settings.cpp @@ -83,7 +83,7 @@ void Settings::info(){ String Settings::get(){ String json = "{"; - //\" + json += "\"ssid\":\""+ssid+"\","; json += "\"password\":\""+password+"\","; json += "\"deauthReason\":"+(String)(int)deauthReason+","; @@ -101,8 +101,7 @@ String Settings::get(){ json += "}"; if(i!=nameList.len-1) json += ","; } - json += "]"; - - json += "}"; + + json += "] }"; return json; } diff --git a/esp8266_deauther/esp8266_deauther.ino b/esp8266_deauther/esp8266_deauther.ino index 9e452a2..ae9e5dd 100644 --- a/esp8266_deauther/esp8266_deauther.ino +++ b/esp8266_deauther/esp8266_deauther.ino @@ -18,7 +18,7 @@ extern "C" { #include "SSIDList.h" /* ========== DEBUG ========== */ -const bool debug = false; +const bool debug = true; /* ========== DEBUG ========== */ ESP8266WebServer server(80);