TpBluetoothServiceDiscovery 类
V0.2.1TpExtUtils
2025-11-14
基础信息
| 头文件: | include <TpBluetoothServiceDiscovery.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | |
| 派生类: |
信号
| 信号名称 | 参数 | 描述 |
|---|---|---|
| finished | TpList< TpBluetoothService > & |
Public 成员函数
| TpBluetoothServiceDiscovery(const TpBluetoothAddress &addr) | ||
|---|---|---|
| ~TpBluetoothServiceDiscovery() | ||
| discoveryServices() | 扫描目标主机支持的服务(SDP通信获取),成功获取到服务后自动结束 | |
| setRemoteAddress(const TpBluetoothAddress &addr) | 设置目标主机地址 | |
| TpBluetoothAddress | getRemoteAddress() const | 获取目标主机地址 |
| setUuidFilter(const TpBluetoothUuid &uuid) | 设置UUID过滤器(暂不支持) | |
| setUuidFilter(const TpList< TpBluetoothUuid > &uuid) | 设置UUID过滤器列表(暂不支持) | |
| TpList< TpBluetoothUuid > | getUuidFilter() const | 获取UUID过滤器列表 |
| isDiscovering() const | 是否正在扫描中 | |
| TpList< TpBluetoothService > TpBluetoothServiceDiscovery::getDiscoveredServices | getDiscoveredServices() const | 获取扫描结果 |
成员函数说明
TpBluetoothServiceDiscovery::TpBluetoothServiceDiscovery(const TpBluetoothAddress &addr)
暂无注释...
TpBluetoothServiceDiscovery::~TpBluetoothServiceDiscovery()
暂无注释...
int TpBluetoothServiceDiscovery::discoveryServices()
扫描目标主机支持的服务(SDP通信获取),成功获取到服务后自...
扫描目标主机支持的服务(SDP通信获取),成功获取到服务后自动结束
返回值:
int TpBluetoothServiceDiscovery::setRemoteAddress(const TpBluetoothAddress &addr)
设置目标主机地址...
设置目标主机地址
参数:addr:
返回值:
TpBluetoothAddress TpBluetoothServiceDiscovery::getRemoteAddress() const
获取目标主机地址...
获取目标主机地址
返回值:
int TpBluetoothServiceDiscovery::setUuidFilter(const TpBluetoothUuid &uuid)
设置UUID过滤器(暂不支持)...
设置UUID过滤器(暂不支持)
参数:uuid:
返回值:
int TpBluetoothServiceDiscovery::setUuidFilter(const TpList< TpBluetoothUuid > &uuid)
设置UUID过滤器列表(暂不支持)...
设置UUID过滤器列表(暂不支持)
参数:uuid:
返回值:
TpList< TpBluetoothUuid > TpBluetoothServiceDiscovery::getUuidFilter() const
获取UUID过滤器列表...
获取UUID过滤器列表
返回值:
tpBool TpBluetoothServiceDiscovery::isDiscovering() const
是否正在扫描中...
是否正在扫描中
返回值:
TpList< TpBluetoothService > TpBluetoothServiceDiscovery::getDiscoveredServices() const
获取扫描结果...
获取扫描结果
返回值:
