Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

如何停止WLAN扫描

From 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 04:41.
177 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×