allow define wifi credentials in pio (#21640)

This commit is contained in:
Jason2866 2024-06-15 15:48:24 +02:00 committed by GitHub
parent 94aded8d5c
commit 711e283925
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -71,11 +71,21 @@
#define WIFI_DNS "192.168.1.1" // [IpAddress4] If not using DHCP set DNS1 IP address (might be equal to WIFI_GATEWAY)
#define WIFI_DNS2 "0.0.0.0" // [IpAddress5] If not using DHCP set DNS2 IP address (might be equal to WIFI_GATEWAY)
#ifndef STA_SSID1
#define STA_SSID1 "" // [Ssid1] Wi-Fi SSID
#endif
#ifndef STA_PASS1
#define STA_PASS1 "" // [Password1] Wi-Fi password
#endif
#ifndef STA_SSID2
#define STA_SSID2 "" // [Ssid2] Optional alternate AP Wi-Fi SSID
#endif
#ifndef STA_PASS2
#define STA_PASS2 "" // [Password2] Optional alternate AP Wi-Fi password
#endif
#ifndef WIFI_AP_PASSPHRASE
#define WIFI_AP_PASSPHRASE "" // AccessPoint passphrase. For WPA2 min 8 char, for open use "" (max 63 char).
#endif
#define WIFI_CONFIG_TOOL WIFI_RETRY // [WifiConfig] Default tool if Wi-Fi fails to connect (default option: 4 - WIFI_RETRY)
// (WIFI_RESTART, WIFI_MANAGER, WIFI_RETRY, WIFI_WAIT, WIFI_SERIAL, WIFI_MANAGER_RESET_ONLY)
// The configuration can be changed after first setup using WifiConfig 0, 2, 4, 5, 6 and 7.