Initial Checkin for WiFi and HTTP Server Framework

This commit is contained in:
Jm Casler
2020-09-12 21:43:41 -07:00
parent b6f71ca1db
commit f129b458ad
9 changed files with 314 additions and 31 deletions

View File

@@ -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);
}