tpBluetoothDevice类
ExternUtils
2025-07-05
介绍
蓝牙设备型管信息(即周围的蓝牙)
基础信息
头文件: | include <tpBluetoothDevice.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 类型
enum 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() | ||
tpString | getName() | 获取蓝牙的名字 |
tpBluetoothAddress | getAddress() const | 获取蓝牙地址 |
getRssi() | 获取蓝牙信号强度 | |
getPaired() | 获取蓝牙的配对状态 | |
getLegacyPairing() | 获取设备是否支持传统配对方式,0表示仅支持 | |
getAlias() | 获取蓝牙别名 | |
getIcon() | 获取蓝牙的图标 | |
getDeviceType() | 获取设备类型 | |
getMajorDeviceClass() | 获取主设备类型,暂未实现 | |
getMinorDeviceClass() | 获取次设备类型,暂未实现 |
成员枚举类型说明
enum tpBluetoothDevice::tpDeviceType
名称 | 值 | 描述 |
---|
成员函数说明
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()
暂无注释...
tpString tpBluetoothDevice::getName()
点击查看...
获取蓝牙的名字
返回值:
linebreak
tpBluetoothAddress tpBluetoothDevice::getAddress() const
点击查看...
获取蓝牙地址
返回值:
linebreak
tpInt16 tpBluetoothDevice::getRssi()
点击查看...
获取蓝牙信号强度
返回值:
linebreak
tpBool tpBluetoothDevice::getPaired()
点击查看...
获取蓝牙的配对状态
返回值:
linebreak
tpBool tpBluetoothDevice::getLegacyPairing()
点击查看...
获取设备是否支持传统配对方式,0表示仅支持
返回值:
linebreak
char * tpBluetoothDevice::getAlias()
点击查看...
获取蓝牙别名
返回值:
linebreak
char * tpBluetoothDevice::getIcon()
点击查看...
获取蓝牙的图标
返回值:
linebreak
tpUInt32 tpBluetoothDevice::getDeviceType()
点击查看...
获取设备类型
返回值:
linebreak
tpUInt8 tpBluetoothDevice::getMajorDeviceClass()
点击查看...
获取主设备类型,暂未实现
返回值:
linebreak
tpUInt8 tpBluetoothDevice::getMinorDeviceClass()
点击查看...
获取次设备类型,暂未实现
返回值:
linebreak