2020-09-13 16:58:36 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
#include <functional>
|
2020-10-11 20:38:09 -07:00
|
|
|
#include "PhoneAPI.h"
|
2020-09-13 16:58:36 -07:00
|
|
|
|
|
|
|
|
void initWebServer();
|
2020-10-07 22:02:53 -07:00
|
|
|
void createSSLCert();
|
|
|
|
|
|
2020-09-13 16:58:36 -07:00
|
|
|
void handleNotFound();
|
|
|
|
|
|
|
|
|
|
void handleWebResponse();
|
|
|
|
|
|
|
|
|
|
void handleJSONChatHistory();
|
|
|
|
|
|
|
|
|
|
void notifyWebUI();
|
|
|
|
|
|
2020-09-18 15:33:03 -07:00
|
|
|
void handleHotspot();
|
2020-09-18 20:42:35 -07:00
|
|
|
|
2020-09-22 21:01:31 -07:00
|
|
|
void handleStyleCSS();
|
2020-09-23 19:04:12 -07:00
|
|
|
void handleRoot();
|
|
|
|
|
void handleScriptsScriptJS();
|
2020-10-11 20:38:09 -07:00
|
|
|
void handleJSONChatHistoryDummy();
|
|
|
|
|
|
|
|
|
|
class httpAPI : public PhoneAPI
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
// Nothing here yet
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
// Nothing here yet
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
// Nothing here yet
|
|
|
|
|
|
|
|
|
|
};
|