mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-09 03:17:31 +00:00
intermediate work
This commit is contained in:
14
src/mesh/wifi/WebServerThread.cpp
Normal file
14
src/mesh/wifi/WebServerThread.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "mesh/wifi/WebServerThread.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
WebServerThread webServerThread;
|
||||
|
||||
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {}
|
||||
|
||||
int32_t WebServerThread::runOnce()
|
||||
{
|
||||
DEBUG_MSG("WebServerThread::runOnce()\n");
|
||||
|
||||
return (1000 * 1);
|
||||
}
|
||||
|
||||
20
src/mesh/wifi/WebServerThread.h
Normal file
20
src/mesh/wifi/WebServerThread.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "concurrency/OSThread.h"
|
||||
#include "configuration.h"
|
||||
#include <Arduino.h>
|
||||
#include <functional>
|
||||
|
||||
|
||||
class WebServerThread : private concurrency::OSThread
|
||||
{
|
||||
|
||||
public:
|
||||
WebServerThread();
|
||||
|
||||
protected:
|
||||
|
||||
virtual int32_t runOnce();
|
||||
};
|
||||
|
||||
extern WebServerThread webServerThread;
|
||||
Reference in New Issue
Block a user