Files
firmware/src/mesh/http/WebServer.h

48 lines
679 B
C
Raw Normal View History

#pragma once
2020-10-11 22:13:14 -07:00
#include "PhoneAPI.h"
#include "concurrency/OSThread.h"
#include <Arduino.h>
#include <functional>
void initWebServer();
void createSSLCert();
void handleNotFound();
void handleWebResponse();
//void handleHotspot();
//void handleStyleCSS();
//void handleRoot();
2020-11-06 22:21:20 -08:00
// Interface to the PhoneAPI to access the protobufs with messages
2020-10-16 19:38:59 -07:00
class HttpAPI : public PhoneAPI
{
2020-10-11 22:13:14 -07:00
public:
// Nothing here yet
2020-10-11 22:13:14 -07:00
private:
// Nothing here yet
2020-10-11 22:13:14 -07:00
protected:
// Nothing here yet
};
class WebServerThread : private concurrency::OSThread
{
public:
WebServerThread();
protected:
virtual int32_t runOnce();
};
extern WebServerThread *webServerThread;