Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User miikkis's Avatar
    Join Date
    Nov 2007
    Posts
    98
    I use code from wiki

    CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
    CleanupStack::PushL(commDb);
    CApSelect* select = CApSelect::NewLC(
    *commDb,
    KEApIspTypeAll,
    EApBearerTypeWLAN, // use EApBearerTypeAll for all types
    KEApSortUidAscending);
    TBuf<256> accessPoints;
    _LIT(KAPInfoTxtFormat, "[%d]%S ");
    TBool ok = select->MoveToFirst();
    for(TInt i = 0; ok && (i < select->Count()); i++)
    {
    accessPoints.AppendFormat(
    KAPInfoTxtFormat,
    select->Uid(),
    &select->Name());
    ok = select->MoveNext();
    }
    CleanupStack::PopAndDestroy(2); // select, commDb

    this works fine, but is it possible to get wlan network name inside of that wlan name.

    I got now wlan ap and its name is Test and network name is linksys, so above code returns just Test, but I need to get that linksys.

    Many thanks for help

    edit: and problem is solved
    wlan->ReadTextL(EApWlanNetworkName, networkName)
    Last edited by miikkis; 2008-06-02 at 11:46.

  2. #2
    Regular Contributor Cleanup_Stack_PushL's Avatar
    Join Date
    May 2008
    Posts
    65
    HBufC * apn_name = view->ReadLongTextLC( TPtrC( GPRS_APN) );

    view->ReadTextL((TPtrC)GPRS_APN, name);

Similar Threads

  1. How to set WLAN IAP network mode to Ad-hoc instead of Infrastructure?
    By PopAndDestroy in forum Wired and Wireless interfaces (Closed)
    Replies: 2
    Last Post: 2007-08-29, 08:04
  2. how to check if WLAN IAP is available?
    By marcinkrol84 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-07-12, 15:41
  3. Has Nokia broken 7650 J2ME in v4.39?
    By LongSteve in forum Mobile Java General
    Replies: 6
    Last Post: 2003-06-03, 17:05
  4. Replies: 5
    Last Post: 2003-02-07, 11:25
  5. 7650 and MS Bluetooth Transceiver
    By damnedi in forum Bluetooth Technology
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
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