Updated scanNetworks to carry settings

This commit is contained in:
N0vaPixel
2017-03-04 00:02:22 +01:00
parent be158e3954
commit 44934180b0
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ bool APScan::start(){
}
aps._clear();
for(int i=0;i<maxAPScanResults;i++) selected[i] = false;
results = WiFi.scanNetworks(false, true); // lets scanNetworks return hidden APs. (async = false & show_hidden = true)
results = WiFi.scanNetworks(false, settings.apScanHidden); // lets scanNetworks return hidden APs. (async = false & show_hidden = true)
for(int i=0;i<results && i<maxAPScanResults;i++){
Mac _ap;
+3
View File
@@ -6,10 +6,13 @@
#include <ESP8266WiFi.h>
#include "Mac.h"
#include "MacList.h"
#include "Settings.h"
extern String data_getVendor(uint8_t first,uint8_t second,uint8_t third);
extern const bool debug;
extern Settings settings;
class APScan{
public:
APScan();