@@ -45,7 +45,7 @@ esp_err_t IRAM_ATTR parms_init()
4545 get_config_param_str ("ap_ip" , & ap_ip );
4646 get_config_param_str ("auth_username" , & authUsername );
4747 // get_config_param_str("mac_ap", &macAp);
48- get_config_param_str ("auth_username " , & authPass );
48+ get_config_param_str ("auth_password " , & authPass );
4949
5050 get_config_param_int ("web_server" , & webServer );
5151 get_config_param_int ("led_enable" , & ledEnable );
@@ -67,7 +67,7 @@ esp_err_t IRAM_ATTR parms_init()
6767 gateway_addr = (gateway_addr != NULL ) ? gateway_addr : "" ;
6868
6969 ap_ip = (ap_ip != NULL ) ? ap_ip : DEFAULT_AP_IP ;
70- customDNSip = (customDNSip != NULL ) ? customDNSip : "default" ;
70+ customDNSip = (customDNSip != NULL ) ? customDNSip : DEFAULT_DNS1 ;
7171
7272 authUsername = (authUsername != NULL ) ? authUsername : DEFAULT_ADMIN_USERNAME ;
7373 authPass = (authPass != NULL ) ? authPass : DEFAULT_ADMIN_PASSWORD ;
@@ -82,13 +82,13 @@ esp_err_t IRAM_ATTR parms_init()
8282 auth_info .username = authUsername ;
8383 auth_info .password = authPass ;
8484
85- if (IsCustomDnsEnable )
86- {
87- if (strcmp (customDNSip , "default" ) == 0 )
88- {
89- customDNSip = DEFAULT_DNS1 ;
90- }
91- }
85+ // if (IsCustomDnsEnable)
86+ // {
87+ // if (strcmp(customDNSip, "default") == 0)
88+ // {
89+ // customDNSip = DEFAULT_DNS1;
90+ // }
91+ // }
9292
9393 macAp = currentMAC ; //(macAp != NULL) ? macAp : currentMAC;
9494
0 commit comments