fix @mc-hamster build to work on linux/nrf52

This commit is contained in:
Kevin Hester
2021-01-15 13:21:33 +08:00
parent a827017bd2
commit 3598c91c29
13 changed files with 15 additions and 16 deletions

47
src/mesh/http/WebServer.h Normal file
View File

@@ -0,0 +1,47 @@
#pragma once
#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();
// Interface to the PhoneAPI to access the protobufs with messages
class HttpAPI : public PhoneAPI
{
public:
// Nothing here yet
private:
// Nothing here yet
protected:
// Nothing here yet
};
class WebServerThread : private concurrency::OSThread
{
public:
WebServerThread();
protected:
virtual int32_t runOnce();
};
extern WebServerThread *webServerThread;