mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 18:52:30 +00:00
Initial Checkin for WiFi and HTTP Server Framework
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -41,6 +41,7 @@
|
||||
#include "timing.h"
|
||||
#include <OneButton.h>
|
||||
#include <Wire.h>
|
||||
#include "meshwifi/meshwifi.h"
|
||||
// #include <driver/rtc_io.h>
|
||||
|
||||
#ifndef NO_ESP32
|
||||
@@ -325,6 +326,11 @@ void setup()
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WiFi_MODE
|
||||
// Initialize Wifi
|
||||
initWifi();
|
||||
#endif
|
||||
|
||||
if (!rIf)
|
||||
recordCriticalError(ErrNoRadio);
|
||||
else
|
||||
@@ -416,5 +422,10 @@ void loop()
|
||||
// feel slow
|
||||
msecstosleep = 10;
|
||||
|
||||
#if WiFi_MODE
|
||||
// TODO: This should go into a thread handled by FreeRTOS.
|
||||
handleWebResponse();
|
||||
#endif
|
||||
|
||||
delay(msecstosleep);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user