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);
}
}
求助:tkl_wifi_scan_ap获取周围ap的ssid为空!
-
- Posts: 19
求助:tkl_wifi_scan_ap获取周围ap的ssid为空!
Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!
能提供完整的log吗?
-
- Posts: 19
Re: 求助:tkl_wifi_scan_ap获取周围ap的ssid为空!
log在附件!
- Attachments
-
- 新建 文本文档 (2).txt
- (7.7 KiB) Downloaded 79 times
-
- Posts: 19