×
Namespaces

Variants
Actions
Revision as of 07:41, 1 August 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

如何停止WLAN扫描

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

测试基于
设备:: All

兼容于
平台: S60 5th Edition
S60 3rd Edition, FP2
S60 3rd Edition, FP1
S60 5th Edition
S60 3rd Edition FP2
S60 3rd Edition FP1

文章
关键词: CWlanMgmtClient, WLAN_DEVICE_SETTINGS, WLAN_BG_SCAN_INTERVAL
hoolee 在 30 Sep 2010 创建
最后由 hamishwillee 在 01 Aug 2012 编辑

简述

我们可以通过CommsDat WLAN API (wlancdbcols.h)来停止WLAN扫描 WLAN scan can be disabled using the CommsDat WLAN API (wlancdbcols.h).

Note.pngNote: :此API非公开SDK中内容. 可在SDK API Plug-in中查找.

详情描述

可以通过CommsDat WLAN API (wlancdbcols.h)来设置WLAN扫描时间间隔,这些可以在 Archived:How to get and set the WLAN scan interval using Symbian C++中找到。作为一个特殊的情况,你可以通过程序将间隔设置为0,这样就可以停止WLAN扫描了,当扫描停止后,Show WLAN availability设置将显示Never(具体在Settings application | Connections | Wireless LAN中)

注意这将导致WLAN图标丛状态 栏中消失,因为WLAN引擎不会接收到任何连接通知了。我们可以通过增加下列代码使其能接收到通知,但是隐藏图标。

 // Notifying WLAN Engine about changes in settings.
CWlanMgmtClient* wlanMgmtClient = CWlanMgmtClient::NewL();
wlanMgmtClient->NotifyChangedSettings();
delete wlanMgmtClient;
This page was last modified on 1 August 2012, at 07:41.
131 page views in the last 30 days.