Timeout constant values are used now.
This commit is contained in:
parent
740bfc600b
commit
ef2a6c15de
1 changed files with 5 additions and 3 deletions
|
@ -57,6 +57,8 @@ void setup() {
|
|||
#endif
|
||||
|
||||
// Pin settings
|
||||
pinMode(BAT_CHARGED_PIN, INPUT);
|
||||
pinMode(BAT_CHARGING_PIN, INPUT);
|
||||
pinMode(STATUS_LED_PIN, OUTPUT);
|
||||
pinMode(ANEMOMETER_PIN, INPUT_PULLUP);
|
||||
pinMode(A0, INPUT);
|
||||
|
@ -69,9 +71,9 @@ void setup() {
|
|||
// Establish WiFi connection
|
||||
String wifiName = "oko-weather-" + DEVICE_NAME;
|
||||
|
||||
wifiManager.setMinimumSignalQuality(15);
|
||||
wifiManager.setConnectTimeout(60); // the time in seconds to wait for the known wifi connection
|
||||
wifiManager.setTimeout(60); // the time in seconds to wait for the user to configure the device
|
||||
wifiManager.setMinimumSignalQuality(16);
|
||||
wifiManager.setConnectTimeout(WIFI_AUTOCONNECT_TIMEOUT_S); // the time in seconds to wait for the known wifi connection
|
||||
wifiManager.setTimeout(WIFI_CONFIG_PORTAL_TIMEOUT_S); // the time in seconds to wait for the user to configure the device
|
||||
|
||||
if (!wifiManager.autoConnect(wifiName.c_str(), "DEADBEEF")) {
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Reference in a new issue