解决了扫描WIFI后程序重启问题

This commit is contained in:
jarvis 2025-03-11 14:36:08 +08:00
parent 22c60ee94d
commit 500841b6d2
6 changed files with 15 additions and 6 deletions

View File

@ -24,6 +24,8 @@
"string_view": "c", "string_view": "c",
"span": "c", "span": "c",
"esp_vfs_fat.h": "c", "esp_vfs_fat.h": "c",
"cstdlib": "c" "cstdlib": "c",
"fluxwifi.h": "c",
"event_groups.h": "c"
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -16636,8 +16636,8 @@
"theme_dark": false, "theme_dark": false,
"theme_color1": 5, "theme_color1": 5,
"theme_color2": 0, "theme_color2": 0,
"uiExportFolderPath": "E:\\FluxDC\\SquareLineProj\\Export", "uiExportFolderPath": "D:\\yuwell_workspace\\FluxDC\\SquareLineProj\\Export",
"projectExportFolderPath": "E:\\FluxDC\\SquareLineProj\\Export", "projectExportFolderPath": "D:\\yuwell_workspace\\FluxDC\\SquareLineProj\\Export",
"custom_variable_prefix": "uic", "custom_variable_prefix": "uic",
"backup_cnt": 234, "backup_cnt": 234,
"autosave_cnt": 0, "autosave_cnt": 0,

View File

@ -48,6 +48,9 @@ void wifi_scan(void)
/* »ñȡɨÃè½á¹û */ /* »ñȡɨÃè½á¹û */
get_wifi_scan_result(); get_wifi_scan_result();
/* ֹͣɨÃè */
esp_wifi_scan_stop();
esp_wifi_stop();
return; return;
} }

View File

@ -15,6 +15,10 @@
#define DEFAULT_SCAN_LIST_SIZE 10 #define DEFAULT_SCAN_LIST_SIZE 10
extern wifi_ap_record_t ap_info[DEFAULT_SCAN_LIST_SIZE];
extern int number;
extern int ap_count;
static void print_wifi_scan_result(uint16_t ap_count, uint16_t number); static void print_wifi_scan_result(uint16_t ap_count, uint16_t number);
static void print_cipher_type(int pairwise_cipher, int group_cipher); static void print_cipher_type(int pairwise_cipher, int group_cipher);
static void print_auth_mode(int authmode); static void print_auth_mode(int authmode);