×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    15

    How to use 'MWlanMgmtNotifications'?

    Hello,

    Could you please give me a help how to use 'MWlanMgmtNotifications' to monitor Wlan info change, prefer some example codes.

    Thanks so much for your idea!

    Regards,

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to use 'MWlanMgmtNotifications'?

    hi,
    check this might be helpful..

    http://wiki.forum.nokia.com/index.ph...Management_API

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    15

    Re: How to use 'MWlanMgmtNotifications'?

    Hello, Maldar

    Thanks for reply!

    I just got info to use 'MWlanMgmtNotifications' for monitoring from that link, but I wondering how to get the notification, and how can I make to catch the notification?

    Thanks for further idea!

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to use 'MWlanMgmtNotifications'?

    Quote Originally Posted by chen1s View Post
    Hello, Maldar

    Thanks for reply!

    I just got info to use 'MWlanMgmtNotifications' for monitoring from that link, but I wondering how to get the notification, and how can I make to catch the notification?

    Thanks for further idea!
    The header file (and probably the HTML documentation too) says:
    ...
    // CLASS DECLARATION
    /**
    * @brief Callback interface for WLAN management notifications.
    *
    * These virtual methods should be inherited and implemented by the
    * client wanting to observe WLAN management events.
    *
    * The client has to enable notifications by calling the appropriate
    * method from the management interface.
    * @see MWlanMgmtInterface::ActivateNotificationsL.

    * @lib wlanmgmtimpl.dll
    * @since S60 3.0
    */
    class MWlanMgmtNotifications ...
    So, instantiate a MWlanMgmtInterface object using CWlanMgmtClient and then activate the notification by passing it a object that implements MWlanMgmtNotifications. Easy!

    As usual when discussing an API from the API Plug-in a fare warning is due: there is no BC promise for these APIs and they are to be use on your own risk. See license agreement for details.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    107

    Re: How to use 'MWlanMgmtNotifications'?

    Use something like this:

    Code:
    CWlanScanInfo iScanInfo = CWlanScanInfo::NewL();
    CWlanMgmtClient iWLANMgmtClient = CWlanMgmtClient::NewL();
    iWLANMgmtClient->ActivateNotificationsL(*this);
    where the class that is calling the code is defined as:
    Code:
    class CYourClass: public MWlanMgmtNotifications
    {
    ...
    /**
    	 * MWlanMgmtNotifications
    	 */
    	void ConnectionStateChanged( TWlanConnectionMode aNewState);
    	void BssidChanged( TWlanBssid& aNewBSSID );
    	void BssLost();
    	void BssRegained();
    	void NewNetworksDetected();
    	void OldNetworksLost();
    	void TransmitPowerChanged(TUint);
    	void RssChanged(TWlanRssClass , TUint);
    }
    I hope it helps.

    I am having big problems with WLAN Info API as it crashes randomly on my application. As I posted in other threads I have an active object class that polls WLAN information after 2 seconds (using RTimer).

    The application simply crashes randomly at different moments. If someone has any idea please help. The thread is this:

    http://discussion.forum.nokia.com/fo...d.php?t=130768

    Thanks,
    Omar

  6. #6
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    Re: How to use 'MWlanMgmtNotifications'?

    Guys, How you have linked if there is not any lib just dll. I always got message unresolved symbol.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: How to use 'MWlanMgmtNotifications'?

    This API needs no .lib (in fact I am not sure which .dll do you mean), it is an ECOM component, everything is abstract except the NewL and the destructor, these two are inline methods and they are provided in the .inl files.
    So what kind of error do you get?

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to use 'MWlanMgmtNotifications'?

    Also don't neglect to read the comments in those files, they pretty much show how the API can be used.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    Re: How to use 'MWlanMgmtNotifications'?

    Yes wlanmgmtimpl.dll I use it as ECOM, I got error unresolved symbol (REComSession::CreateImplementation(class TUid, long))) whenever I compile it. I will check readme again in the plugin. Itomuta have you tried to use it? Or you just guess? Thank you very much for helping as always!!!
    Whenever I use lines
    CWlanScanInfo iScanInfo = CWlanScanInfo::NewL();
    CWlanMgmtClient iWLANMgmtClient = CWlanMgmtClient::NewL();
    The compilation error arise.
    includes:
    wlanmgmtcommon.h
    wlanscaninfo.h
    wlanmgmtclient.h
    Last edited by ozerki; 2008-06-19 at 07:20.

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: How to use 'MWlanMgmtNotifications'?

    Yes, the inlined NewL method uses REComSession. It is a generic API, thus it is already present in the SDK, just search for REComSession in the SDK Help, and check the line "Link against" on the top.

  11. #11
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    Smile Re: How to use 'MWlanMgmtNotifications'?

    Ok, I have added
    #include <ecom/ecom.h>
    and ecom.lib to mmp.
    There is still same error
    REComSession::CreateImplementation!!!
    So the information has not helped anyway.

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: How to use 'MWlanMgmtNotifications'?

    "#include <ecom/ecom.h>" is already present in the wlan... files, so it is not important. The linker error is strange, you may try to Project/Clean... in Carbide.

  13. #13
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    Re: How to use 'MWlanMgmtNotifications'?

    Yes, clean and reallyclean and build on other machine the same.
    Error like
    referenced from wlanmgmtclient.inl :29
    wlanscaninfo.inl :36
    Last edited by ozerki; 2008-06-19 at 14:00.

  14. #14
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: How to use 'MWlanMgmtNotifications'?

    Which SDK do you use?

  15. #15
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    Re: How to use 'MWlanMgmtNotifications'?

    The SDK is 3.0

Similar Threads

  1. BssidChanged & MWlanMgmtNotifications
    By shunxing_chen in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-04-30, 14:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×