mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-11 23:52:14 +00:00
partial work
This commit is contained in:
parent
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
|
// Initialize Wifi
|
||||||
initWifi(forceSoftAP);
|
initWifi(forceSoftAP);
|
||||||
|
|
||||||
|
// Start web server thread.
|
||||||
|
//webServerThread = new WebServerThread();
|
||||||
|
|
||||||
|
|
||||||
if (!rIf)
|
if (!rIf)
|
||||||
recordCriticalError(CriticalErrorCode_NoRadio);
|
recordCriticalError(CriticalErrorCode_NoRadio);
|
||||||
else
|
else
|
||||||
@ -577,7 +581,7 @@ void loop()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: This should go into a thread handled by FreeRTOS.
|
// TODO: This should go into a thread handled by FreeRTOS.
|
||||||
handleWebResponse();
|
//handleWebResponse();
|
||||||
|
|
||||||
service.loop();
|
service.loop();
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "mesh/wifi/WebServerThread.h"
|
#include "mesh/wifi/WebServerThread.h"
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
WebServerThread webServerThread;
|
WebServerThread *webServerThread;
|
||||||
|
|
||||||
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {}
|
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {}
|
||||||
|
|
||||||
|
@ -17,4 +17,4 @@ class WebServerThread : private concurrency::OSThread
|
|||||||
virtual int32_t runOnce();
|
virtual int32_t runOnce();
|
||||||
};
|
};
|
||||||
|
|
||||||
extern WebServerThread webServerThread;
|
extern WebServerThread *webServerThread;
|
||||||
|
Loading…
Reference in New Issue
Block a user