Author Topic: Check if BT-devices are connected / List all connected devices  (Read 1167 times)

Offline mandark

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Check if BT-devices are connected / List all connected devices
« on: February 25, 2015, 10:09:35 PM »
i would like to build a command-line-tool to simply check, if various devices (specifically wiimotes) are currently connected to my PC running toshiba BT-stack.

could anyone be so kind to post a simple example of how to get all currently connected BT-devices? i would not like to start a discovery for new devices, but simply get the currently actually connected and active ones (the ones with the green-yellow connection-icon in the device-list of the toshba BT-stack).

many thanks in advance!

Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3055
  • Karma: 1000
    • Soft Service Company
Re: Check if BT-devices are connected / List all connected devices
« Reply #1 on: February 26, 2015, 01:38:21 AM »
Hello,

you must enumerate all paired devices first by calling wclBluetoothDiscovey.Discovery(...,...,true)
then call wclBluetoothDevice.GetConnected() for each found device to know its connection status.

 

Sitemap 1 2 3 4 5 6 7 8 9