Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

increase time to connect to wifi, increase time to begin the server

Geo384e8b442443
diff --git a/src/Services/WifiService.h b/src/Services/WifiService.h
index fdb11f18..c8f12984 100644
--- a/src/Services/WifiService.h
+++ b/src/Services/WifiService.h
@@ -40,7 +40,7 @@ public:
WifiService();
// Connection
- bool connect(const std::string& ssid, const std::string& password, unsigned long timeoutMs = 14000);
+ bool connect(const std::string& ssid, const std::string& password, unsigned long timeoutMs = 15000);
void disconnect();
bool isConnected() const;
diff --git a/src/Vendors/S3WifiSetup.cpp b/src/Vendors/S3WifiSetup.cpp
index b7d48036..4cac037f 100644
--- a/src/Vendors/S3WifiSetup.cpp
+++ b/src/Vendors/S3WifiSetup.cpp
@@ -43,7 +43,7 @@ bool setupS3Wifi() {
WiFi.begin(ssid.c_str(), password.c_str());
- for (int i = 0; i < 10; ++i) {
+ for (int i = 0; i < 15; ++i) {
if (WiFi.status() == WL_CONNECTED) {
leds[0] = CRGB::Green;
FastLED.show();
diff --git a/src/main.cpp b/src/main.cpp
index 3496e540..7f2f42f9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -114,7 +114,7 @@ void setup() {
WebTerminalView webView(wsServer);
WebTerminalInput webInput(wsServer);
deviceView.loading();
- delay(5000); // let the server begin
+ delay(6000); // let the server begin
// Setup routes for index and ws
httpServer.setupRoutes();