nl:: Weave:: DeviceLayer:: ภายใน:: BLEManager
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/BLEManager.h>
ให้การควบคุมบริการและการเชื่อมต่อของ WoBLE สําหรับอุปกรณ์ Weave
สรุป
BLEManager กําหนดอินเทอร์เฟซนามธรรมของออบเจ็กต์รายการเดียวที่ให้การควบคุมสําหรับบริการและการเชื่อมต่อ Woble สําหรับอุปกรณ์ Weave BLEManager เป็นออบเจ็กต์ภายในที่คอมโพเนนต์อื่นใช้โดยเลเยอร์ Weave Device Layer แต่แอปพลิเคชันเข้าถึงโดยตรงไม่ได้
การสืบทอด
คลาสย่อยที่เป็นที่รู้จักโดยตรง:nl::Weave::DeviceLayer::Internal::BLEManagerImpl
nl::Weave::DeviceLayer::Internal::BLEManagerImpl
nl::Weave::DeviceLayer::Internal::BLEManagerImpl
ประเภทสาธารณะ |
|
---|---|
WoBLEServiceMode
|
ใช้ConnectivityManager::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
ฟังก์ชันสาธารณะ
รับเลเยอร์
::nl::Ble::BleLayer * GetBleLayer( void ) const
รับอุปกรณ์
WEAVE_ERROR GetDeviceName( char *buf, size_t bufSize )
โหมด GetWoBLEService
WoBLEServiceMode GetWoBLEServiceMode( void )
เริ่ม
WEAVE_ERROR Init( void )
โฆษณา
bool IsAdvertising( void )
IsAdvertisingEnabled
bool IsAdvertisingEnabled( void )
เปิดใช้งานการแสดงโฆษณาแล้ว
bool IsFastAdvertisingEnabled( void )
จํานวนการเชื่อมต่อ
uint16_t NumConnections( void )
กิจกรรมบนแพลตฟอร์ม
void OnPlatformEvent( const WeaveDeviceEvent *event )
ตั้งค่าโฆษณา
WEAVE_ERROR SetAdvertisingEnabled( bool val )
ตั้งชื่ออุปกรณ์
WEAVE_ERROR SetDeviceName( const char *deviceName )
เปิดใช้งานชุดโฆษณา
WEAVE_ERROR SetFastAdvertisingEnabled( bool val )
ตั้งค่าโหมดบริการ
WEAVE_ERROR SetWoBLEServiceMode( WoBLEServiceMode val )
ฟังก์ชันที่ได้รับการคุ้มครอง
BLEBLE
BLEManager()=default