Add API server on port 4403 (kinda a WIP, seems to work but I haven't

finished the python client code)
This commit is contained in:
geeksville
2020-09-19 12:54:49 -07:00
parent 0929b86d62
commit 9e9c50e6d8
6 changed files with 41 additions and 12 deletions

View File

@@ -37,12 +37,12 @@
#include "SPILock.h"
#include "graphics/Screen.h"
#include "main.h"
#include "meshwifi/meshhttp.h"
#include "meshwifi/meshwifi.h"
#include "sleep.h"
#include "timing.h"
#include <OneButton.h>
#include <Wire.h>
#include "meshwifi/meshwifi.h"
#include "meshwifi/meshhttp.h"
// #include <driver/rtc_io.h>
#ifndef NO_ESP32
@@ -395,6 +395,8 @@ void loop()
userButtonAlt.tick();
#endif
loopWifi();
// Show boot screen for first 3 seconds, then switch to normal operation.
static bool showingBootScreen = true;
if (showingBootScreen && (timing::millis() > 3000)) {