39 lines
954 B
C++
39 lines
954 B
C++
#ifndef ChronoWebServer_H
|
|
#define ChronoWebServer_H
|
|
|
|
#include <Arduino.h>
|
|
#include <WiFi.h>
|
|
#include <NetworkClient.h>
|
|
#include <ESPmDNS.h>
|
|
#include <Update.h>
|
|
#include <ChronoBLE.h>
|
|
#include <GunProfile.h>
|
|
|
|
class ChronoWebServer {
|
|
public:
|
|
|
|
// Constructor: Called when a ChronoWebServer object is created
|
|
ChronoWebServer();
|
|
|
|
void init();
|
|
void process();
|
|
void setTestModeCallback(void (*pFunc)());
|
|
|
|
private:
|
|
static void _handleRoot();
|
|
static void _handleGunProfile();
|
|
static void _handleProjectileProfile();
|
|
static void _handleAddProjectileProfile();
|
|
static void _handleSetProjectileProfile();
|
|
static void _handleRemoveProjectileProfile();
|
|
static void _handleAddGunProfile();
|
|
static void _handleSetGunProfile();
|
|
static void _handleRemoveGunProfile();
|
|
static void _handleExport();
|
|
static void _handleReset();
|
|
static void _handleFormat();
|
|
static void _handleTestMode();
|
|
|
|
};
|
|
|
|
#endif |