3636
3737#ifdef CONFIG_AT_WEB_SERVER_SUPPORT
3838#include "esp_http_server.h"
39- // AT web can use fatfs to storge html or use embeded file to storge html.
39+ // AT web can use fatfs to storage html or use embedded file to storage html.
4040// If use fatfs,we should enable AT FS Command support.
4141#ifdef CONFIG_AT_WEB_USE_FATFS
4242#include "esp_vfs_fat.h"
@@ -155,7 +155,7 @@ static const char *s_ota_receive_fail_response = "+WEBSERVERRSP:5\r\n";
155155static SLIST_HEAD (router_fail_list_head_ , router_obj ) s_router_fail_list = SLIST_HEAD_INITIALIZER (s_router_fail_list );
156156static const char * TAG = "at-web" ;
157157
158- // AT web can use fatfs to storge html or use embeded file to storge html.
158+ // AT web can use fatfs to storage html or use embedded file to storage html.
159159// If use fatfs,we should enable AT FS Command support.
160160#ifdef CONFIG_AT_WEB_USE_FATFS
161161static wl_handle_t s_wl_handle = WL_INVALID_HANDLE ; // Handle of the wear levelling library instance
@@ -487,7 +487,7 @@ static esp_err_t at_web_start_scan_filter(uint8_t *phone_mac, uint8_t *password,
487487 memcpy (item -> mac , ap_info [loop ].bssid , sizeof (item -> mac ));
488488 // copy ssid
489489 memcpy (item -> ssid , ap_info [loop ].ssid , sizeof (item -> ssid ));
490- // cpoy rssi
490+ // copy rssi
491491 item -> rssi = ap_info [loop ].rssi ;
492492
493493 if (last == NULL ) {
@@ -506,7 +506,7 @@ static esp_err_t at_web_start_scan_filter(uint8_t *phone_mac, uint8_t *password,
506506
507507 // If have mobile phone mac, first consider connect the router which has similar mac
508508 if (phone_mac != NULL ) {
509- ESP_LOGI (TAG , "Try to macth MAC" );
509+ ESP_LOGI (TAG , "Try to match MAC" );
510510 for (item = SLIST_FIRST (& s_router_all_list ); (item != NULL ) && (try_connect_count < max_try_connect_num ); item = SLIST_NEXT (item , next )) {
511511 // some phone(like XIAOMI10), the difference between SOFTAP and STA is two bytes
512512 if ((at_web_get_mac_match_len (phone_mac , item -> mac , sizeof (item -> mac )) >= 5 )) {
@@ -525,7 +525,7 @@ static esp_err_t at_web_start_scan_filter(uint8_t *phone_mac, uint8_t *password,
525525 }
526526 }
527527 if (item == NULL ) {
528- ESP_LOGI (TAG , "No macth MAC" );
528+ ESP_LOGI (TAG , "No match MAC" );
529529 }
530530 }
531531#if ESP_AT_WEB_ENABLE_VIRTUAL_MAC_MATCH
@@ -545,7 +545,7 @@ static esp_err_t at_web_start_scan_filter(uint8_t *phone_mac, uint8_t *password,
545545 } else {
546546 s_connect_success_flag = 1 ;
547547 }
548- break ; // find ssid, skip seach
548+ break ; // find ssid, skip search
549549 }
550550 }
551551 }
@@ -691,7 +691,7 @@ static int at_web_find_arg(char *line, char *arg, char *buff, int buffLen)
691691 return -1 ; // not found
692692}
693693
694- // AT web can use fatfs to storge html or use embeded file to storge html.
694+ // AT web can use fatfs to storage html or use embedded file to storage html.
695695// If use fatfs,we should enable AT FS Command support.
696696#ifdef CONFIG_AT_WEB_USE_FATFS
697697/* Send HTTP response with the contents of the requested file */
@@ -867,7 +867,7 @@ static void listen_sta_connect_status_timer_cb(TimerHandle_t timer)
867867 esp_netif_t * sta_if = esp_netif_get_handle_from_ifkey ("WIFI_STA_DEF" );
868868
869869 if (connect_count < connect_max_count ) {
870- sta_got_ip = at_web_get_sta_got_ip_flag (); // to check whether sta has connnected to appointed ap(like at_wifi_station_get_connect_status())
870+ sta_got_ip = at_web_get_sta_got_ip_flag (); // to check whether sta has connected to appointed ap(like at_wifi_station_get_connect_status())
871871 if (sta_got_ip != true) {
872872 connect_count ++ ;
873873 return ;
@@ -958,7 +958,7 @@ static void listen_sta_connect_success_timer_cb(TimerHandle_t timer)
958958 wifi_sta_connection_info_t * current_connection_info = at_web_get_sta_connection_info ();
959959
960960 if (current_connection_info -> config_status == ESP_AT_WIFI_STA_CONNECTING ) {
961- sta_got_ip = at_web_get_sta_got_ip_flag (); // to check whether sta has connnected to appointed ap(like at_wifi_station_get_connect_status())
961+ sta_got_ip = at_web_get_sta_got_ip_flag (); // to check whether sta has connected to appointed ap(like at_wifi_station_get_connect_status())
962962 if (sta_got_ip != true) {
963963 return ;
964964 } else {
@@ -973,7 +973,7 @@ static void listen_sta_connect_success_timer_cb(TimerHandle_t timer)
973973/**
974974 * @brief Apply WiFi connect info to try connect
975975 *
976- * @param[in] udp_port: indicates the device in use, -1: brower , others: WeChat;
976+ * @param[in] udp_port: indicates the device in use, -1: browser , others: WeChat;
977977 * when Wechat is in use and ssid is null, we use udp send wifi connect result.
978978 *
979979 * @return
@@ -1435,7 +1435,7 @@ static esp_err_t ap_record_get_handler(httpd_req_t *req)
14351435
14361436 for (loop = 0 ; loop < ap_number ; loop ++ ) {
14371437 int32_t ssid_len = strlen ((const char * )ap_info [loop ].ssid );
1438- if (ssid_len != 0 ) { // ingore hidden ssid
1438+ if (ssid_len != 0 ) { // ignore hidden ssid
14391439 json_len += sprintf (temp_json_str + json_len , "{\"ssid\":\"" );
14401440 for (int i = 0 ; i < ssid_len ; i ++ ) {
14411441 uint8_t c = ap_info [loop ].ssid [i ];
@@ -1891,7 +1891,7 @@ static esp_err_t at_web_start(uint16_t server_port)
18911891 esp_err_t err ;
18921892
18931893 if (s_server == NULL ) {
1894- /*AT web can use fatfs to storge html or use embeded file to storge html.If use fatfs, we should enable AT FS Command support*/
1894+ /*AT web can use fatfs to storage html or use embedded file to storage html.If use fatfs, we should enable AT FS Command support*/
18951895#ifdef CONFIG_AT_WEB_USE_FATFS
18961896 err = at_web_fatfs_spiflash_init ();
18971897 if (err != ESP_OK ) {
0 commit comments