Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
dennisritchie
Posts: 78
Registered: ‎01-14-2013
My Device: Games

[Bluetooth watching]

Dear friends,

 

I am having trouble with bluetooth, how to watching a specific device with 2 event: BT_EVT_SERVICE_CONNECTED, BT_EVT_SERVICE_DISCONNECTED.

 

Thank you.

 

 

Developer
dennisritchie
Posts: 78
Registered: ‎01-14-2013
My Device: Games

Re: [Bluetooth watching]

Dear friends,

 

I am having trouble with bluetooth (bb10, z10), how to watching a specific device with 2 event: BT_EVT_SERVICE_CONNECTED, BT_EVT_SERVICE_DISCONNECTED.

 

Thank you.

 

Developer
dennisritchie
Posts: 78
Registered: ‎01-14-2013
My Device: Games

Re: [Bluetooth watching]

Dear all,

 

With this case, I think we should consider:

 

1.     bt_remote_device_t **remote_device_array_paired =
            bt_disc_retrieve_devices(BT_DISCOVERY_PREKNOWN, 0);

 

2.     bt_remote_device_t **remote_device_array_connected =
            bt_disc_retrieve_devices(BT_DISCOVERY_CONNECTED, 0);

 

 

Thank you.

Dennis Ritchie.