From 5f2ddc8ce373cbf3543073a1c77b96d0b16d6bbc Mon Sep 17 00:00:00 2001 From: human-bee <130510994+human-bee@users.noreply.github.com> Date: Fri, 23 Aug 2024 18:46:33 -0700 Subject: [PATCH] Hardcode WiFi and server credentials moved to top of file for testing --- software/source/clients/esp32/src/client/client.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/software/source/clients/esp32/src/client/client.ino b/software/source/clients/esp32/src/client/client.ino index da6f2d5..ba33c16 100644 --- a/software/source/clients/esp32/src/client/client.ino +++ b/software/source/clients/esp32/src/client/client.ino @@ -13,6 +13,11 @@ #include #include +// Hardcode WiFi credentials and server if needed +const String WIFI_NAME="Lynn Street Rugs"; +const String WIFI_PASSWORD="7TuftWork9!"; +const String SERVER_URL="http://192.168.0.55:10101"; + Preferences preferences; String server_domain = ""; @@ -541,7 +546,6 @@ void tryReconnectWiFi() { } void tryReconnectToServer() { preferences.begin("network", true); // Open Preferences with the "network" namespace in ReadOnly mode - const String SERVER_URL="SERVER URL HERE"; String serverURL = SERVER_URL; // Get stored server URL, if any // String serverURL = preferences.getString("server_url", ""); // Get stored server URL, if any preferences.end(); // Close the Preferences @@ -793,8 +797,6 @@ void setup() { Serial.setTxBufferSize(1024); // Set the transmit buffer size for the Serial object. WiFi.mode(WIFI_AP_STA); // Set WiFi mode to both AP and STA. - const String WIFI_NAME="WIFI NAME HERE"; - const String WIFI_PASSWORD="WIFI PASSWORD HERE"; // delay(100); // Short delay to ensure mode change takes effect // WiFi.softAPConfig(localIP, gatewayIP, subnetMask); // WiFi.softAP(ssid, password); @@ -878,4 +880,4 @@ void loop() M5.update(); webSocket.loop(); } -} +} \ No newline at end of file