Discussion Board

Results 1 to 5 of 5

Thread: to get ssid

  1. #1
    Registered User d.devendran's Avatar
    Join Date
    Jul 2009
    Posts
    25
    hi i'm just started learn symbian c++, so i download sample from http://wiki.forum.nokia.com/index.ph...e:WLanInfo.zip,

    then i test in real device,

    but now i want to detect he ssid, so i saw code from

    http://wiki.forum.nokia.com/index.ph..._WLAN_INFO_API but i don't know how to apply to the existing code,

    i just add the header #include <wlanmgmtclient.h>, method GetSSID and GetWLANAPIInfoL into my WLanInfoAppui.cpp file.

    then install the WLAN Info API plug-in into the sdk

    then add CAPABILITY NetworkServices ReadUserData WriteUserData ReadDeviceData into WLanInfo.mmp

    but when i compile i'm getting 37 error,

    can any one help me to use the code to get ssid please

    thanks

  2. #2
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    can you show us what compilation error you are getting .

  3. #3
    Registered User d.devendran's Avatar
    Join Date
    Jul 2009
    Posts
    25
    the following are the error i got
    error: `KErrNullPointerPassed' undeclared (first use this function)

    error: (Each undeclared identifier is reported only once for each function it appears in.)

    error: `CWlanScanInfo::CWlanScanInfo()' is private[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfo.inl]

    error: within this context

    error: cannot declare variable `iScanInfo' to be of type `CWlanScanInfo' WLanInfoAppui.cpp

    error: because the following virtual functions are abstract:

    error: virtual TUint8 MWlanScanInfoBase::RXLevel() const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual void MWlanScanInfoBase::Bssid(TWlanBssid&) const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TUint16 MWlanScanInfoBase::BeaconInterval() const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TUint16 MWlanScanInfoBase::Capability() const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TWlanConnectionSecurityMode MWlanScanInfoBase::SecurityMode() const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TInt MWlanScanInfoBase::InformationElement(TUint8, TUint8&, const TUint8**)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TInt MWlanScanInfoBase::WpaIE(TUint8&, const TUint8**)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TInt MWlanScanInfoBase::FirstIE(TUint8&, TUint8&, const TUint8**)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TInt MWlanScanInfoBase::NextIE(TUint8&, TUint8&, const TUint8**)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TUint16 MWlanScanInfoIteratorBase::Size() const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual const TWlanScanInfoFrame* MWlanScanInfoIteratorBase::First()[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual const TWlanScanInfoFrame*

    error: virtual const TWlanScanInfoFrame* MWlanScanInfoIteratorBase::Current() const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: virtual TBool MWlanScanInfoIteratorBase::IsDone() const[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanscaninfointerface.h]

    error: cannot declare variable `iWLANMgmtClient' to be of type `CWlanMgmtClient'

    error: because the following virtual functions are abstract: WLanInfoAppui.cpp

    error: virtual void MWlanMgmtInterface::ActivateNotificationsL(MWlanMgmtNotifications&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual void MWlanMgmtInterface::CancelNotifications()[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::GetScanResults(CWlanScanInfo&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual void MWlanMgmtInterface::GetScanResults(TRequestStatus&, CWlanScanInfo&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::GetConnectionBssid(TWlanBssid&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::GetConnectionSsid(TWlanSsid&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::GetConnectionSignalQuality(TInt32&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::GetConnectionMode(TWlanConnectionMode&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::GetConnectionSecurityMode(TWlanConnectionSecurityMode&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::GetAvailableIaps(RArray<TUint>&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual void MWlanMgmtInterface::GetAvailableIaps(TRequestStatus&, RArray<TUint>&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual void MWlanMgmtInterface::NotifyChangedSettings()[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::AddBssidToBlacklist(const TWlanBssid&)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: virtual TInt MWlanMgmtInterface::UpdateRssNotificationBoundary(TInt32, TInt32)[/S60/devices/S60_3rd_FP2_SDK_v1.1/epoc32/include/wlanmgmtinterface.h]

    error: base operand of `->' has non-pointer type `CWlanScanInfo'

  4. #4
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    d.devendran,
    One thread per query is usually enough. Please avoid multiposting. Refer to http://discussion.forum.nokia.com/fo...d.php?t=173571

  5. #5
    Regular Contributor mrudulpen's Avatar
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    368
    Hi,

    You cannot create WLANINfo variable using default constructor. Use NewL

    Also check KErrNullPointerPassed is declared or header where it is declared is included
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

Similar Threads

  1. Getting WLAN Access point SSID
    By nadav_smilansky in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-09-25, 16:32
  2. Connect to another SSID
    By hmleung in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-04-23, 16:01
  3. How to search for ssid?
    By dee_viz in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2007-09-17, 09:34
  4. D211, RH Linux 2.4.20-8 and empty SSID
    By sunbug in forum Multimodecards
    Replies: 0
    Last Post: 2004-02-29, 20:59
  5. D211 WLAN and "hidden" SSID
    By Capricorn72 in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-23, 11:53

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