-
Notifications
You must be signed in to change notification settings - Fork 638
WiFi
Maxim Prokhorov edited this page Nov 10, 2019
·
1 revision
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 ) |
If you're looking for support:
- Issues: this is the most dynamic channel at the moment, you might find an answer to your question by searching open or closed issues.
- Wiki pages: might not be as up-to-date as we all would like (hey, you can also contribute in the documentation!).
- Gitter channel: you have better chances to get fast answers from project contributors or other ESPurna users. (also available with any Matrix client!)
- Issue a question: as a last resort, you can open new question issue on GitHub. Just remember: the more info you provide the more chances you'll have to get an accurate answer.
- Backup the stock firmware
- Flash a pre-built binary image
- Flash a virgin Itead Sonoff device without opening
- Flash TUYA-based device without opening
- Flash Shelly device without opening
- Using PlatformIO
- from Visual Studio Code
- Using Arduino IDE
- Build the Web Interface
- Over-the-air updates
- Two-step updates
- ESPurna OTA Manager
- NoFUSS
- Troubleshooting
- MQTT
- REST API
- Domoticz
- Home Assistant
- InfluxDB
- Prometheus metrics
- Thingspeak
- Alexa
- Google Home
- Architecture
- 3rd Party Plugins
- Coding style
- Pull Requests