#include "theSecrets.h" #ifdef ESP32 #include #elif defined(ESP8266) #include #endif #include "Firewall.hpp" fw::Firewall *firewall; void setup_wifi() { Serial.begin(115200); WiFi.mode(WIFI_STA); WiFi.begin(ssid, psk); Serial.printf("Attempting to connect to WPA SSID: %s\n", ssid); while (WiFi.status() != WL_CONNECTED) { Serial.print('.'); delay(1000); } Serial.println(); Serial.print("IP Address: "); Serial.println(WiFi.localIP()); } void setup() { setup_wifi(); firewall = new fw::Firewall(api_username, api_password, 8080); } void loop() { firewall->handle_api_client(); }