Skip to content

Commit

Permalink
Fix default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
gemi254 committed Dec 16, 2024
1 parent 06bf5f2 commit 4ea3453
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ConfigAssistHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,25 @@ class ConfigAssistHelper {
// Check if the time is synchronized
bool isTimeSync();
// Wait for the time synchronization with a timeout
void waitForTimeSync(const uint32_t timeout = 20000);
void waitForTimeSync(uint32_t syncTimeout = 20000);
// Validate the Wi-Fi configuration in the configuration file
bool validateWiFiConfig();
// Set a callback function to handle Wi-Fi result
void setWiFiResultCallback(WiFiResultCallback callback);
// Set the pin number for the LED indicator
void setLedPin(uint8_t pin);
// Set the connection timeout for Wi-Fi
void setConnectionTimeout(uint32_t timeout);
void setConnectionTimeout(uint32_t connectTimeout);
// Set whether to reconnect to Wi-Fi automatically
void setReconnect(bool reconnect);
// Get the current LED state
LEDState getLedState();
// Run the main loop to manage Wi-Fi connection and LED states
void loop();
// Connect to the Wi-Fi network
bool connectToNetwork(uint32_t connectTimeout = 10000, const uint8_t ledPin = 0, const bool async = false);
// Connect to the Wi-Fi network if connectTimeout == 0 default timeout from config or 15000
bool connectToNetwork(uint32_t connectTimeout = 0, const uint8_t ledPin = 0, const bool async = false);
// Connect to the network asynchronously
void connectToNetworkAsync(uint32_t connectTimeout = 10000, const uint8_t ledPin = 0, WiFiResultCallback callback = nullptr);
void connectToNetworkAsync(uint32_t connectTimeout = 0, const uint8_t ledPin = 0, WiFiResultCallback callback = nullptr);
// Start mDNS (Multicast DNS) for the device
bool startMDNS();

Expand All @@ -93,7 +93,7 @@ class ConfigAssistHelper {
// Wait for a result from the connection process
void waitForResult();
// Wait for the connection to complete with a timeout
void waitForConnection(uint32_t connectTimeout = 10000);
void waitForConnection(uint32_t connectTimeout = 0);
// Check if the device is still connected to Wi-Fi
// Will try to reconnect or swich to another connection
void checkConnection();
Expand Down

0 comments on commit 4ea3453

Please sign in to comment.