nl:: Weave:: DeviceLayer:: Internal:: GenericConnectivityManagerImpl_BLE
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConnectivityManagerImpl_BLE.h>
จัดเตรียมการใช้งานทั่วไปของฟีเจอร์ ConnectivityManager เฉพาะสำหรับ BLE สำหรับแพลตฟอร์มที่คลาส BLEManager ใช้ฟังก์ชันการทำงาน BLE
สรุป
คลาสนี้มีจุดประสงค์ให้คลาส ConnectivityManagerImpl รับค่า (โดยตรงหรือโดยอ้อม) ซึ่งจะปรากฏเป็นพารามิเตอร์ ImplClass ของเทมเพลตด้วย
เมธอดส่วนใหญ่ในคลาสนี้จะโอนสายไปยังเมธอดที่มีชื่อคล้ายกันในคลาส BLEManager การจัดเรียงนี้ที่การติดตั้งใช้งาน ConnectivityManager มอบสิทธิ์ BLE ให้กับคลาส BLEManager จะเป็นมาตรฐานบนแพลตฟอร์มที่รองรับ BLE และช่วยลดความซับซ้อนของคลาส ConnectivityManagerImpl
ฟังก์ชันสาธารณะ |
|
---|---|
_GetBLEDeviceName(char *buf, size_t bufSize)
|
|
_GetWoBLEServiceMode(void)
|
ConnectivityManager::WoBLEServiceMode
|
_IsBLEAdvertising(void)
|
bool
|
_IsBLEAdvertisingEnabled(void)
|
bool
|
_IsBLEFastAdvertisingEnabled(void)
|
bool
|
_NumBLEConnections(void)
|
uint16_t
|
_SetBLEAdvertisingEnabled(bool val)
|
|
_SetBLEDeviceName(const char *deviceName)
|
|
_SetBLEFastAdvertisingEnabled(bool val)
|
|
_SetWoBLEServiceMode(ConnectivityManager::WoBLEServiceMode val)
|
ฟังก์ชันแบบคงที่แบบสาธารณะ |
|
---|---|
_WoBLEServiceModeToStr(ConnectivityManager::WoBLEServiceMode mode)
|
const char *
|
ฟังก์ชันสาธารณะ
_ชื่ออุปกรณ์ของ GetBLE
WEAVE_ERROR _GetBLEDeviceName( char *buf, size_t bufSize )
_GetWoBLEServiceMode
ConnectivityManager::WoBLEServiceMode _GetWoBLEServiceMode( void )
_IsBLEการโฆษณา
bool _IsBLEAdvertising( void )
_IsBLEAdvertisingEnabled
bool _IsBLEAdvertisingEnabled( void )
_IsBLEFastAdvertisingEnabled
bool _IsBLEFastAdvertisingEnabled( void )
การเชื่อมต่อ _NumBLE
uint16_t _NumBLEConnections( void )
_SetBLEAdvertisingEnabled
WEAVE_ERROR _SetBLEAdvertisingEnabled( bool val )
_SetBLEDeviceName
WEAVE_ERROR _SetBLEDeviceName( const char *deviceName )
_SetBLEFastAdvertisingEnabled
WEAVE_ERROR _SetBLEFastAdvertisingEnabled( bool val )
_SetWoBLEServiceMode
WEAVE_ERROR _SetWoBLEServiceMode( ConnectivityManager::WoBLEServiceMode val )
ฟังก์ชันแบบคงที่แบบสาธารณะ
_WoBLEServiceModeToStr
const char * _WoBLEServiceModeToStr( ConnectivityManager::WoBLEServiceMode mode )