求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
13825141849
Posts: 19

AP_IF_S ap_ary[10] = {0};
int num = 0;
tkl_wifi_init(NULL);
tkl_wifi_set_work_mode(WWM_STATION);
tkl_wifi_scan_ap(NULL,&ap_ary,&num);
printf("=================================\r\n");
if(num>0)
{
for(int i=0;i<num;i++)
{
printf("ap_ar[%d]=%s\r\n",i,ap_ary.ssid);
char ssid[100] = {0};
strncpy(ssid,ap_ary.ssid,ap_ary.s_len);
printf("ssid=%s\r\n",ssid);
}
}

E52F3BF5-8C86-40e5-907D-B78E95A553F6.png
愚者千虑必有一得
Posts: 514

Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

能提供完整的log吗?

13825141849
Posts: 19

Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

log在附件!

Attachments
新建 文本文档 (2).txt
(7.7 KiB) Downloaded 79 times
愚者千虑必有一得
Posts: 514

Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

13825141849 2024年 Nov 22日 09:28

log在附件!

是这样的?

企业微信截图_17322391217168.png
13825141849
Posts: 19

Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

新建 文本文档 (2)(1).txt
(7.7 KiB) Downloaded 88 times
愚者千虑必有一得
Posts: 514

Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

看了下还是乱码啊

13825141849
Posts: 19

Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

tkl_wifi_scan_ap获取热点名字为空.txt.txt
(3.7 KiB) Downloaded 74 times
13825141849
Posts: 19

Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!

已解决了!

Post Reply