From 711e28392500b3fa1b7b14e599fbb0cbb99e23ca Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 15 Jun 2024 15:48:24 +0200 Subject: [PATCH] allow define wifi credentials in pio (#21640) --- tasmota/my_user_config.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index d2a13c280..60efbee49 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -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.