Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2013

    Getting connected bluetooth devices

    I am developing an application on Asha 202 which connects a spp bluetooth device. When the device is paired and comes active, the OS will prompt for connection. After I answered "Accept", the device is connected. But I am not able to get the StreamConnection in my application.

    I have tried discoveryAgent.retrieveDevices(DiscoveryAgent.CACHED); and discoveryAgent.retrieveDevices(DiscoveryAgent.PREKNOWN);. Both returns null. I have also tried discoveryAgent.startInquiry(DiscoveryAgent.GIAC, discoveryListener); and discoveryAgent.startInquiry(DiscoveryAgent.LIAC, discoveryListener);. But I can't get anything neither.

    Are there any ways to get those connected streams?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Getting connected bluetooth devices

    A thing you could try is checking if the various JSR-82 examples in the Wiki do something similar that you need, and how. http://www.developer.nokia.com/Commu...h_API_(JSR-82)

  3. #3
    Registered User
    Join Date
    Mar 2003

    Re: Getting connected bluetooth devices

    stanley, Connector.open gives you the streams. Have you reached that statement in your code? From which thread do you call Connector.open?

Similar Threads

  1. [moved] Getting distance between two mobile devices connected via Bluetooth
    By jadhav.rahul898 in forum General Development Questions
    Replies: 3
    Last Post: 2009-11-02, 12:08
  2. How To Confirm Maximum No Devices Connected And Default MTU Size
    By srr in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2009-06-03, 11:03
  3. How to get the all bluetooth connected devices? ?
    By specialren in forum Bluetooth Technology
    Replies: 0
    Last Post: 2009-05-01, 17:53
  4. Monitoring HFP Devices connected through Bluetooth
    By sirjohney in forum Bluetooth Technology
    Replies: 1
    Last Post: 2008-11-03, 12:48
  5. Devices connected using GPRS
    By voda_ovi_sb in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-06-11, 21:28

Posting Permissions

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