TpBluetoothDevice 类
V0.2.1TpExtUtils
2025-11-14
介绍
蓝牙设备型管信息(即周围的蓝牙)
基础信息
| 头文件: | include <TpBluetoothDevice.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | |
| 派生类: |
Public 类型
enum TpBluetoothDevice::TpDeviceType
| 名称 | 值 | 描述 |
|---|
Public 成员函数
| TpBluetoothDevice(const char *name, const char *address, uint16_t rssi, uint32_t class_type, uint8_t paired, uint8_t legacy_pairing, char *alias, char *icon) | ||
|---|---|---|
| ~TpBluetoothDevice() | ||
| TpBluetoothDevice(const TpBluetoothDevice &other) | 拷贝构造(不建议使用) | |
| TpBluetoothDevice & TpBluetoothDevice::operator= | operator=(const TpBluetoothDevice &other) | 拷贝赋值(不建议使用) |
| TpString | getName() | 获取蓝牙的名字 |
| TpBluetoothAddress | getAddress() const | 获取蓝牙地址 |
| getRssi() | 获取蓝牙信号强度 | |
| getPaired() | 获取蓝牙的配对状态 | |
| getLegacyPairing() | 获取设备是否支持传统配对方式,0表示仅支持 | |
| getAlias() | 获取蓝牙别名 | |
| getIcon() | 获取蓝牙的图标 | |
| getDeviceType() | 获取设备类型 | |
| getMajorDeviceClass() | 获取主设备类型,暂未实现 | |
| getMinorDeviceClass() | 获取次设备类型,暂未实现 |
成员函数说明
TpBluetoothDevice::TpBluetoothDevice(const char *name, const char *address, uint16_t rssi, uint32_t class_type, uint8_t paired, uint8_t legacy_pairing, char *alias, char *icon)
暂无注释...
TpBluetoothDevice::~TpBluetoothDevice()
暂无注释...
TpBluetoothDevice::TpBluetoothDevice(const TpBluetoothDevice &other)
拷贝构造(不建议使用)...
拷贝构造(不建议使用)
参数:other:
TpBluetoothDevice & TpBluetoothDevice::operator=(const TpBluetoothDevice &other)
拷贝赋值(不建议使用)...
拷贝赋值(不建议使用)
参数:other:
返回值:
TpString TpBluetoothDevice::getName()
获取蓝牙的名字...
获取蓝牙的名字
返回值:
TpBluetoothAddress TpBluetoothDevice::getAddress() const
获取蓝牙地址...
获取蓝牙地址
返回值:
tpInt16 TpBluetoothDevice::getRssi()
获取蓝牙信号强度...
获取蓝牙信号强度
返回值:
tpBool TpBluetoothDevice::getPaired()
获取蓝牙的配对状态...
获取蓝牙的配对状态
返回值:
tpBool TpBluetoothDevice::getLegacyPairing()
获取设备是否支持传统配对方式,0表示仅支持...
获取设备是否支持传统配对方式,0表示仅支持
返回值:
char * TpBluetoothDevice::getAlias()
获取蓝牙别名...
获取蓝牙别名
返回值:
char * TpBluetoothDevice::getIcon()
获取蓝牙的图标...
获取蓝牙的图标
返回值:
tpUInt32 TpBluetoothDevice::getDeviceType()
获取设备类型...
获取设备类型
返回值:
tpUInt8 TpBluetoothDevice::getMajorDeviceClass()
获取主设备类型,暂未实现...
获取主设备类型,暂未实现
返回值:
tpUInt8 TpBluetoothDevice::getMinorDeviceClass()
获取次设备类型,暂未实现...
获取次设备类型,暂未实现
返回值:
