Represents the IceBT plug-in object.
More...
#include <IceBT/IceBT.h>
Represents the IceBT plug-in object.
◆ getDevices()
virtual DeviceMap IceBT::Plugin::getDevices |
( |
| ) |
const |
|
pure virtual |
Retrieve a snapshot of all known remote devices.
The plug-in obtains a snapshot of the remote devices at startup and then dynamically updates its map as the host adds and removes devices.
- Returns
- A map containing properties for each known device.
◆ startDiscovery()
virtual void IceBT::Plugin::startDiscovery |
( |
const std::string & |
address, |
|
|
const DiscoveryCallbackPtr & |
cb |
|
) |
| |
|
pure virtual |
Start Bluetooth device discovery on the adapter with the specified address.
The given callback will be invoked for each discovered device. The same device may be reported more than once. Discovery remains active until explicitly stopped by a call to stopDiscovery(), or via other administrative means.
- Parameters
-
address | The address associated with the Bluetooth adapter. |
cb | The callback to invoke when a device is discovered. |
◆ stopDiscovery()
virtual void IceBT::Plugin::stopDiscovery |
( |
const std::string & |
address | ) |
|
|
pure virtual |
Stops Bluetooth device discovery on the adapter with the specified address.
All discovery callbacks are removed when discovery stops.
- Parameters
-
address | The address associated with the Bluetooth adapter. |
The documentation for this class was generated from the following file: