nl:: Weave:: DeviceLayer:: Internal:: BLEManager
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/BLEManager.h>
控制 Weave 设备的 WoBLE 服务和连接。
摘要
BLEManager 定义了一个单例对象的抽象接口,该对象为 Weave 设备提供 WoBLE 服务和连接控制。BLEManager 是一个内部对象,可供其他组件与 Weave 设备层使用,但无法由应用直接访问。
继承
直接已知子类:nl::Weave::DeviceLayer::Internal::BLEManagerImpl
nl::Weave::DeviceLayer::Internal::BLEManagerImpl
nl::Weave::DeviceLayer::Internal::BLEManagerImpl
公共类型 |
|
---|---|
WoBLEServiceMode
|
usingConnectivityManager::WoBLEServiceMode
|
公共函数 |
|
---|---|
GetBleLayer(void) const
|
|
GetDeviceName(char *buf, size_t bufSize)
|
|
GetWoBLEServiceMode(void)
|
WoBLEServiceMode
|
Init(void)
|
|
IsAdvertising(void)
|
bool
|
IsAdvertisingEnabled(void)
|
bool
|
IsFastAdvertisingEnabled(void)
|
bool
|
NumConnections(void)
|
uint16_t
|
OnPlatformEvent(const WeaveDeviceEvent *event)
|
void
|
SetAdvertisingEnabled(bool val)
|
|
SetDeviceName(const char *deviceName)
|
|
SetFastAdvertisingEnabled(bool val)
|
|
SetWoBLEServiceMode(WoBLEServiceMode val)
|
受保护的函数 |
|
---|---|
BLEManager()=default
|
|
BLEManager(const BLEManager &)=delete
|
|
BLEManager(const BLEManager &&)=delete
|
|
operator=(const BLEManager &)=delete
|
|
~BLEManager()=default
|
|
公共类型
WoBLEService 模式
ConnectivityManager::WoBLEServiceMode WoBLEServiceMode
公共函数
GetBleLayer
::nl::Ble::BleLayer * GetBleLayer( void ) const
GetDeviceName
WEAVE_ERROR GetDeviceName( char *buf, size_t bufSize )
GetWoBLEServiceMode
WoBLEServiceMode GetWoBLEServiceMode( void )
Init
WEAVE_ERROR Init( void )
广告
bool IsAdvertising( void )
已启用广告
bool IsAdvertisingEnabled( void )
IsFastAdvertisingEnabled
bool IsFastAdvertisingEnabled( void )
连接数
uint16_t NumConnections( void )
OnPlatformEvent
void OnPlatformEvent( const WeaveDeviceEvent *event )
已启用广告功能
WEAVE_ERROR SetAdvertisingEnabled( bool val )
设置设备名称
WEAVE_ERROR SetDeviceName( const char *deviceName )
SetFastAdvertisingEnabled
WEAVE_ERROR SetFastAdvertisingEnabled( bool val )
SetWoBLEServiceMode
WEAVE_ERROR SetWoBLEServiceMode( WoBLEServiceMode val )
受保护的函数
BLE 管理器
BLEManager()=default