partial work

This commit is contained in:
Jm 2021-01-08 20:06:11 -08:00
parent cfeb40f36d
commit 977e47d109
6 changed files with 8 additions and 38 deletions

2
proto

@ -1 +1 @@
Subproject commit dfe7bc1217a00c23eecb9dfcf1d56fe95ebddc3b
Subproject commit 75078afe43934f4ce15ef86ebc6950658a170145

View File

@ -1,14 +0,0 @@
#include "JMTest.h"
#include <Arduino.h>
JMTest jMTest;
JMTest::JMTest() : concurrency::OSThread("JMTest") {}
int32_t JMTest::runOnce()
{
DEBUG_MSG("JMTest::runOnce()\n");
return (1000);
}

View File

@ -1,20 +0,0 @@
#pragma once
#include "concurrency/OSThread.h"
#include "configuration.h"
#include <Arduino.h>
#include <functional>
class JMTest : private concurrency::OSThread
{
public:
JMTest();
protected:
virtual int32_t runOnce();
};
extern JMTest jMTest;

View File

@ -517,6 +517,10 @@ void setup()
// Initialize Wifi
initWifi(forceSoftAP);
// Start web server thread.
//webServerThread = new WebServerThread();
if (!rIf)
recordCriticalError(CriticalErrorCode_NoRadio);
else
@ -577,7 +581,7 @@ void loop()
#endif
// TODO: This should go into a thread handled by FreeRTOS.
handleWebResponse();
//handleWebResponse();
service.loop();

View File

@ -1,7 +1,7 @@
#include "mesh/wifi/WebServerThread.h"
#include <Arduino.h>
WebServerThread webServerThread;
WebServerThread *webServerThread;
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {}

View File

@ -17,4 +17,4 @@ class WebServerThread : private concurrency::OSThread
virtual int32_t runOnce();
};
extern WebServerThread webServerThread;
extern WebServerThread *webServerThread;