@@ -51,25 +51,25 @@ class ConfigAssistHelper {
51
51
// Check if the time is synchronized
52
52
bool isTimeSync ();
53
53
// Wait for the time synchronization with a timeout
54
- void waitForTimeSync (const uint32_t timeout = 20000 );
54
+ void waitForTimeSync (uint32_t syncTimeout = 20000 );
55
55
// Validate the Wi-Fi configuration in the configuration file
56
56
bool validateWiFiConfig ();
57
57
// Set a callback function to handle Wi-Fi result
58
58
void setWiFiResultCallback (WiFiResultCallback callback);
59
59
// Set the pin number for the LED indicator
60
60
void setLedPin (uint8_t pin);
61
61
// Set the connection timeout for Wi-Fi
62
- void setConnectionTimeout (uint32_t timeout );
62
+ void setConnectionTimeout (uint32_t connectTimeout );
63
63
// Set whether to reconnect to Wi-Fi automatically
64
64
void setReconnect (bool reconnect);
65
65
// Get the current LED state
66
66
LEDState getLedState ();
67
67
// Run the main loop to manage Wi-Fi connection and LED states
68
68
void loop ();
69
- // Connect to the Wi-Fi network
70
- bool connectToNetwork (uint32_t connectTimeout = 10000 , const uint8_t ledPin = 0 , const bool async = false );
69
+ // Connect to the Wi-Fi network if connectTimeout == 0 default timeout from config or 15000
70
+ bool connectToNetwork (uint32_t connectTimeout = 0 , const uint8_t ledPin = 0 , const bool async = false );
71
71
// Connect to the network asynchronously
72
- void connectToNetworkAsync (uint32_t connectTimeout = 10000 , const uint8_t ledPin = 0 , WiFiResultCallback callback = nullptr );
72
+ void connectToNetworkAsync (uint32_t connectTimeout = 0 , const uint8_t ledPin = 0 , WiFiResultCallback callback = nullptr );
73
73
// Start mDNS (Multicast DNS) for the device
74
74
bool startMDNS ();
75
75
@@ -93,7 +93,7 @@ class ConfigAssistHelper {
93
93
// Wait for a result from the connection process
94
94
void waitForResult ();
95
95
// Wait for the connection to complete with a timeout
96
- void waitForConnection (uint32_t connectTimeout = 10000 );
96
+ void waitForConnection (uint32_t connectTimeout = 0 );
97
97
// Check if the device is still connected to Wi-Fi
98
98
// Will try to reconnect or swich to another connection
99
99
void checkConnection ();
0 commit comments