×
Namespaces

Variants
Actions

Archived:如何设置和获取WLAN的扫描间隔时间

From Nokia Developer Wiki
Jump to: navigation, search

Archived.png存档: 这篇文章是存档,因为考虑到今天它与第三方开发者建立商业解决方案不相关。

This depends on API plugin plugin that isn't relevant for current versions of Symbian.

Article Metadata

兼容于
平台: S60 3rd Edition FP1, S60 3rd Edition FP2
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)

文章
翻译:
hoolee
最后由 hamishwillee 在 31 May 2013 编辑
  • 详细描述

这篇文章描述了如何通过CommsDat WLAN API(wlancdbcols.h)设置和获取WLAN网络扫描的间隔时间。

这个API不是公开SDK的一部分,可以在这里找到SDK API Plug-in

  • 解决方案
CCommsDatabase* iDb = CCommsDatabase::NewL();
 
// Open user settings
CCommsDbTableView* iDbtable =
iDb->OpenViewMatchingUintLC( TPtrC(WLAN_DEVICE_SETTINGS),
TPtrC(WLAN_DEVICE_SETTINGS_TYPE),
KWlanUserSettings );
iDbtable->UpdateRecord();
 
// Sets scan interval to 1 minute
iDbtable->WriteUintL(TPtrC( WLAN_BG_SCAN_INTERVAL ), 60);
User::LeaveIfError( iDbtable->PutRecordChanges() );
// iScanNetworks gives the Scan interval which is set in seconds
// (in this case it returns 60)
TUint32 iScanNetworks;
iDbtable->ReadUintL(TPtrC( WLAN_BG_SCAN_INTERVAL ), iScanNetworks);
This page was last modified on 31 May 2013, at 02:39.
207 page views in the last 30 days.
×