mirror of
https://github.com/jjshoots/RemoteIDSpoofer.git
synced 2026-01-29 05:21:08 +00:00
28 lines
572 B
C++
28 lines
572 B
C++
#include <ESP8266WiFi.h>
|
|
#include <ESP8266WebServer.h>
|
|
|
|
#ifndef FRONTEND_H
|
|
#define FRONTEND_H
|
|
|
|
class Frontend {
|
|
private:
|
|
ESP8266WebServer server;
|
|
String HTML();
|
|
void handleOnConnect();
|
|
void handleSetCoords();
|
|
void handleNumDrones();
|
|
void startSpoof();
|
|
void handleNotFound();
|
|
unsigned long maxtime = 0.0;
|
|
unsigned long timer = 0.0;
|
|
|
|
public:
|
|
Frontend(unsigned long idletime);
|
|
void handleClient();
|
|
bool do_spoof = false;
|
|
double latitude = 52.439100;
|
|
double longitude = -1.503900;
|
|
int num_drones = 16;
|
|
};
|
|
|
|
#endif |