Files
esp8266_deauther/esp8266_deauther/APScan.h
Stefan Kremser d842c76a4f New Web Interface
Completly reworked design!
I also improved the way you add/clone SSIDs to the list
2017-07-20 15:11:08 +02:00

60 lines
1.2 KiB
C++

#ifndef APScan_h
#define APScan_h
#define maxAPScanResults 80
#include <ESP8266WiFi.h>
#include "Mac.h"
#include "MacList.h"
#include "Settings.h"
#include <ESP8266WebServer.h>
extern String data_getVendor(uint8_t first, uint8_t second, uint8_t third);
extern ESP8266WebServer server;
extern void sendBuffer();
extern void sendToBuffer(String str);
extern void sendHeader(int code, String type, size_t _size);
extern const bool debug;
extern Settings settings;
class APScan {
public:
APScan();
bool start();
void sort();
String getResultsJSON();
void select(int num);
void sendResults();
String getAPName(int num);
String getAPEncryption(int num);
//String getAPVendor(int num);
String getAPMac(int num);
bool isHidden(int num);
int getAPRSSI(int num);
int getAPChannel(int num);
int getFirstTarget();
bool isSelected(int num);
int results = 0;
int selectedSum;
MacList aps;
private:
int channels[maxAPScanResults];
int rssi[maxAPScanResults];
char names[maxAPScanResults][33];
int encryption[maxAPScanResults];
bool hidden[maxAPScanResults];
String getEncryption(int code);
bool selected[maxAPScanResults];
};
#endif