Namespaces
Variants
Actions

Archived:How to get and set the WLAN scan interval using Symbian C++

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

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

Tested with
Devices(s): Nokia 6210 Navigator, Nokia E90 Communicator, Nokia N78, Nokia N95

Compatibility
Platform(s): S60 3rd Edition FP1 and FP2

Article
Keywords: WLAN_DEVICE_SETTINGS, WLAN_BG_SCAN_INTERVAL
Created: User:Technical writer 1 (23 Apr 2009)
Last edited: hamishwillee (07 Sep 2012)

Description

This article explains how to get and set the time period for scanning WLAN networks using definitions from the CommsDat WLAN API (wlancdbcols.h).

Note.png
Note: This API is not part of the public SDK. It can be found in the SDK API Plug-in.

Solution

 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);

As a special case, the WLAN scan can also be disabled. See Disabling WLAN scan using Symbian C++ for details how to do this programmatically.

This page was last modified on 7 September 2012, at 09:56.
458 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved