Move AP credentials to config and clarify STA UI access

This commit is contained in:
2026-02-02 00:23:52 +01:00
parent f3af5b3f1c
commit d32ae30014
3 changed files with 7 additions and 4 deletions

View File

@@ -642,8 +642,8 @@ void setup() {
} else {
g_ap_mode = true;
char ap_ssid[32];
snprintf(ap_ssid, sizeof(ap_ssid), "DD3-Bridge-%04X", g_short_id);
wifi_start_ap(ap_ssid, "changeme123");
snprintf(ap_ssid, sizeof(ap_ssid), "%s%04X", AP_SSID_PREFIX, g_short_id);
wifi_start_ap(ap_ssid, AP_PASSWORD);
if (g_cfg.ntp_server_1.isEmpty()) {
g_cfg.ntp_server_1 = "pool.ntp.org";
}