Refactoring to break out HTTP from WiFi

This commit is contained in:
Jm Casler
2020-09-13 16:58:36 -07:00
parent d859700497
commit e508306395
7 changed files with 127 additions and 95 deletions

View File

@@ -42,6 +42,7 @@
#include <OneButton.h>
#include <Wire.h>
#include "meshwifi/meshwifi.h"
#include "meshwifi/meshhttp.h"
// #include <driver/rtc_io.h>
#ifndef NO_ESP32
@@ -426,6 +427,15 @@ void loop()
// TODO: This should go into a thread handled by FreeRTOS.
handleWebResponse();
#endif
/*
const char *wifiName = radioConfig.preferences.wifi_ssid;
const char *wifiPsw = radioConfig.preferences.wifi_password;
Serial.print("-------------------");
Serial.print(wifiName);
Serial.print(" ");
Serial.println(wifiPsw);
Serial.println("+++++++++++++++++++");
Serial.println("");
*/
delay(msecstosleep);
}