×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Problem in creating WiFi connection

    Hi All,

    I am working for S60 5th edition application development. In my 1 application I have to create a connection with server using GPRS & in seperate build I have to use only WiFi.
    GPRS build is working fine but my WiFi build also creates connection using GPRS instead of WiFi although WiFi access point is available in my mobile. I am using below code:

    Code:
    iCommDbConnPref.SetBearerSet(ECommDbBearerWLAN );//ECommDbBearerWLAN | ECommDbBearerGPRS
    iCommDbConnPref. SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
    iCommDbConnPref.SetDirection(ECommDbConnectionDirectionUnknown);
    iCommDbConnPref.SetIapId(iapId);   //TUint32 iapId = iapConnectionPref.iBearer.iIapId;    
    iEngineState = EConnMgrConnecting;
    iConnection.Start(iCommDbConnPref, iStatus);	  //Start connection with this TCommDbConnPref connection
    SetActive();
    am I doing anything wrong... or anything is missing in my code

    Thanks in advance.
    Shrawan.

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: Problem in creating WiFi connection

    Does the values returned by TUint32 iapId = iapConnectionPref.iBearer.iIapId; for GPRS & Wifi are same?

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Re: Problem in creating WiFi connection

    Yes both are same...
    But I think, the connection type should depend on iCommDbConnPref.SetBearerSet(ECommDbBearerWLAN);
    If I have set Bearer type as ECommDbBearerWLAN the it should not go for GPRS connection. I think mistake is somewhere else...

Similar Threads

  1. Problem with wifi connection for C3
    By tommum in forum General Development Questions
    Replies: 2
    Last Post: 2010-10-14, 12:49
  2. Wifi ad hoc connection(socket connection problem)
    By wlwelf in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-12-12, 02:20
  3. wifi ad-hoc connection (socket problem with N96)
    By wlwelf in forum Mobile Java General
    Replies: 0
    Last Post: 2008-12-12, 02:16
  4. Wifi connection problem
    By symbiannil in forum Streaming and Video
    Replies: 1
    Last Post: 2008-07-16, 08:55
  5. Problem in connection MIDlet through wifi
    By tareshvyas in forum Mobile Java General
    Replies: 1
    Last Post: 2007-03-15, 01:21

Posting Permissions

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