Prodlouzeni timeoutu pro STA pripojeni
This commit is contained in:
parent
baef6c322e
commit
e83160d3d2
@ -88,10 +88,10 @@
|
||||
|
||||
#include <DNSServer.h>
|
||||
#if defined(ESP8266)
|
||||
#include <ESP8266WebServer.h>
|
||||
# include <ESP8266WebServer.h>
|
||||
#else
|
||||
#include <WebServer.h>
|
||||
#include <rom/rtc.h> // duvod resetu (https://github.com/espressif/arduino-esp32/issues/449)
|
||||
# include <WebServer.h>
|
||||
# include <rom/rtc.h> // duvod resetu (https://github.com/espressif/arduino-esp32/issues/449)
|
||||
#endif
|
||||
#include "WiFiConfig.h"
|
||||
#include <EEPROM.h>
|
||||
@ -100,19 +100,19 @@
|
||||
#include "embHTML.h"
|
||||
|
||||
#ifdef DEBUG_ESP_PORT
|
||||
#define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__)
|
||||
# define DEBUG_MSG(_1, ...) DEBUG_ESP_PORT.printf_P(PSTR(_1), ##__VA_ARGS__)
|
||||
#else
|
||||
#define DEBUG_MSG(...)
|
||||
# define DEBUG_MSG(...)
|
||||
#endif
|
||||
|
||||
#if defined(ESP8266)
|
||||
extern "C" {
|
||||
#include "user_interface.h"
|
||||
# include "user_interface.h"
|
||||
}
|
||||
#define ESP_getChipId() (ESP.getChipId())
|
||||
# define ESP_getChipId() (ESP.getChipId())
|
||||
#else
|
||||
#include <esp_wifi.h>
|
||||
#define ESP_getChipId() ((uint32_t)ESP.getEfuseMac())
|
||||
# include <esp_wifi.h>
|
||||
# define ESP_getChipId() ((uint32_t)ESP.getEfuseMac())
|
||||
#endif
|
||||
|
||||
#define DNS_PORT 53
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @file WiFiConfig.h
|
||||
* @author Pavel Brychta, http://www.xpablo.cz
|
||||
*
|
||||
* Copyright (c) 2015-19 Pavel Brychta. All rights reserved.
|
||||
* Copyright (c) 2015-20 Pavel Brychta. All rights reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -76,15 +76,15 @@ typedef void (*wificonfig_cb)(wificonfigstate_t state); // definice callbacku
|
||||
typedef void (*storeparam_cb)(const char *newvalue); // callback pro ulozeni uzivatelskeho parametru
|
||||
|
||||
#ifndef WIFI_STA_CONNECT_TIMEOUT
|
||||
#define WIFI_STA_CONNECT_TIMEOUT 15000UL // delka cekani na pripojeni k AP [ms]
|
||||
# define WIFI_STA_CONNECT_TIMEOUT 20000UL // delka cekani na pripojeni k AP [ms]
|
||||
#endif
|
||||
|
||||
#ifndef SETUP_SSID
|
||||
#define SETUP_SSID "ESPPBSetup_?"
|
||||
# define SETUP_SSID "ESPPBSetup_?"
|
||||
#endif
|
||||
|
||||
#ifndef SETUP_CHANNEL
|
||||
#define SETUP_CHANNEL 3
|
||||
# define SETUP_CHANNEL 3
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user