diff options
author | uvok | 2025-07-19 10:57:43 +0200 |
---|---|---|
committer | uvok | 2025-07-19 10:58:45 +0200 |
commit | 1d891d2250a0e991c6641e5d9cd2876763b5e017 (patch) | |
tree | 3ecf49d2c1c2456ed2ed90c27312687e97469104 /src | |
parent | 96c28ff38fa4339dde6abaad414c0ccd79aca0c4 (diff) |
Remove update server
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/main.cpp b/src/main.cpp index ff24090..a15b93c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,16 +2,12 @@ #include <NimBLEDevice.h> -#include <WiFi.h> -// #include <ArduinoOTA.h> -#include <HTTPUpdateServer.h> -#include <WebServer.h> - #include "badge/config.h" #include "badge/display.h" #include "badge/gpio.h" #if defined(BADGE_SSID_NAME) && defined(BADGE_SSID_PASS) +#include <WiFi.h> #define BADGE_USE_WIFI 1 #else #define BADGE_USE_WIFI 0 @@ -24,9 +20,6 @@ NimBLEServer *server; #define SLEEP_TIME 10000 NimBLEAdvertising *pAdvertising; -WebServer httpServer(80); -HTTPUpdateServer httpUpdater; - void setup() { Serial.begin(115200); @@ -50,10 +43,6 @@ void setup() while (WiFi.status() != WL_CONNECTED) delay(500); Serial.printf("> My IP is %s\n", WiFi.localIP().toString()); - - httpUpdater.setup(&httpServer); - httpServer.begin(); - #endif // doesn't work as expected? @@ -66,10 +55,6 @@ void setup() void loop() { -#if BADGE_USE_WIFI - httpServer.handleClient(); -#endif - uint16_t pressDuration = de::uvok::badge::gpio_poll(); if (pressDuration > PRESS_TIME_BLE_ADV) { |