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.

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

From Wiki
Jump to: navigation, search

Archived.pngArchived: 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
CompatibilityArticle
Keywords: WLAN_DEVICE_SETTINGS, WLAN_BG_SCAN_INTERVAL
Created: User:Technical writer 1 (23 Apr 2009)
Last edited: hamishwillee (30 May 2013)

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.pngNote: 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 30 May 2013, at 23:39.
55 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.

×