WiFi - xoseperez/espurna GitHub Wiki
You can configure up to five WiFi networks. It will then try to connect to the configured WiFi networks in order of signal strength. If it cannot connect to any network, it will start the SoftAP mode again and retry in 3 minutes.
You can also manually switch to SoftAP mode by double clicking the on-board button or reset the device settings by long pressing it. To switch back to the Station mode, double click the button again.
Configuration key | Build flag | Description |
---|---|---|
WIFI_MAX_NETWORKS |
(default:5 ) |
|
ssidN |
WIFI<N+1>_SSID |
(default:"" ) |
passN |
WIFI<N+1>_PASS |
(default:"" ) |
ipN |
WIFI<N+1>_IP |
(default:"" ) Note: when not empty, disables DHCP and requires gwN , maskN and dnsN to also be configured |
gwN |
WIFI<N+1>_GW |
(default:"" ) |
maskN |
WIFI<N+1>_MASK |
(default:"" ) |
dnsN |
WIFI<N+1>_DNS |
(default:"" ) |
wifiScan |
WIFI_SCAN |
(default: 1 ) Try to connect to the best network by comparing network's signal strength |
wifiSleep |
WIFI_SLEEP_MODE |
(default: 0 (WIFI_NONE_SLEEP )) Possible values: WIFI_NONE_SLEEP (0 ), WIFI_LIGHT_SLEEP (1 ) and WIFI_MODEM_SLEEP (2 ) (see ESP8266WifiType.h
|
wifiTxPwr |
WIFI_OUTPUT_POWER_DBM |
(default: 20.0 (dBm)) |
WIFI_GRATUITOUS_ARP_SUPPORT |
(default: 1 ) Periodically send GARP requests to the network |
|
wifiGarpInvl |
WIFI_GRATUITOUS_ARP_INTERVAL_MIN and WIFI_GRATUITOUS_ARP_INTERVAL_MAX
|
(default: Random value calculated between MIN and MAX ) |