sforkowany z mirror/meshtastic-firmware
partial work
rodzic
cfeb40f36d
commit
977e47d109
2
proto
2
proto
|
@ -1 +1 @@
|
|||
Subproject commit dfe7bc1217a00c23eecb9dfcf1d56fe95ebddc3b
|
||||
Subproject commit 75078afe43934f4ce15ef86ebc6950658a170145
|
|
@ -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);
|
||||
}
|
||||
|
20
src/JMTest.h
20
src/JMTest.h
|
@ -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;
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "mesh/wifi/WebServerThread.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
WebServerThread webServerThread;
|
||||
WebServerThread *webServerThread;
|
||||
|
||||
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {}
|
||||
|
||||
|
|
|
@ -17,4 +17,4 @@ class WebServerThread : private concurrency::OSThread
|
|||
virtual int32_t runOnce();
|
||||
};
|
||||
|
||||
extern WebServerThread webServerThread;
|
||||
extern WebServerThread *webServerThread;
|
||||
|
|
Ładowanie…
Reference in New Issue