File tree Expand file tree Collapse file tree 4 files changed +21
-10
lines changed
Expand file tree Collapse file tree 4 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ String APScan::getResults(){
133133 if ((i!=results-1 ) && (i!=maxAPScanResults-1 )) json += " ," ;
134134 }
135135 json += " ] }" ;
136- if (debug) Serial.println (" done" );
136+ if (debug){
137+ Serial.println (json);
138+ Serial.println (" done" );
139+ }
137140 return json;
138141}
139142
Original file line number Diff line number Diff line change @@ -305,6 +305,9 @@ String Attack::getResults(){
305305 }
306306 json += " ]" ;
307307 json += " }" ;
308- if (debug) Serial.println (" done " );
308+ if (debug){
309+ Serial.println (json);
310+ Serial.println (" done " );
311+ }
309312 return json;
310313}
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ void ClientScan::start(int _time){
1717
1818 for (int i=0 ;i<13 ;i++) channels[i] = 0 ;
1919
20- results = 0 ;
21- timeout = _time;
2220 results = 0 ;
2321 timeout = _time;
2422 sniffing = true ;
@@ -57,8 +55,7 @@ bool ClientScan::stop(){
5755 sniffing = false ;
5856 wifi_promiscuous_enable (0 );
5957
60- Serial.println ();
61- Serial.println (" stopping client scan" );
58+ Serial.println (" stopping client scan after " +(String)(curTime-startTime)+" ms" );
6259 if (debug){
6360 for (int i=0 ;i<results && i<maxClientScanResults;i++){
6461 Serial.print (i);
@@ -68,9 +65,9 @@ bool ClientScan::stop(){
6865 Serial.print (getClientVendor (i));
6966 Serial.print (" " );
7067 Serial.print (getClientMac (i).toString ());
71- Serial.print (" " );
72- Serial.print (getClientSelected (i));
73- Serial.println (" " );
68+ /* Serial.print(" ");
69+ Serial.print(getClientSelected(i));*/
70+ Serial.println ();
7471 }
7572 }
7673 return true ;
@@ -132,7 +129,10 @@ String ClientScan::getResults(){
132129 if ((i!=results-1 ) && (i!=maxClientScanResults-1 )) json += " ," ;
133130 }
134131 json += " ] }" ;
135- if (debug) Serial.println (" done " );
132+ if (debug){
133+ Serial.println (json);
134+ Serial.println (" done " );
135+ }
136136 return json;
137137
138138}
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ void Settings::info(){
8282}
8383
8484String Settings::get (){
85+ if (debug) Serial.println (" getting settings json" );
8586 String json = " {" ;
8687
8788 json += " \" ssid\" :\" " +ssid+" \" ," ;
@@ -103,5 +104,9 @@ String Settings::get(){
103104 }
104105
105106 json += " ] }" ;
107+ if (debug){
108+ Serial.println (json);
109+ Serial.println (" done" );
110+ }
106111 return json;
107112}
You can’t perform that action at this time.
0 commit comments