nl:: Weave:: DeviceLayer:: Internal:: GenericConnectivityManagerImpl_NoBLE
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConnectivityManagerImpl_NoBLE.h>
מספק הטמעה כללית של תכונות ConnectivityManager שהן ספציפיות ל-BLE בפלטפורמות שלא תומכות ב-BLE.
סיכום
המחלקה הזו מיועדת לעבור בירושה (באופן ישיר או עקיף) למחלקה ConnectivityManagerImpl, שמופיעה גם כפרמטר ImplClass של התבנית.
כל החברים בשיעור הזה הם שיטות בתוך שורות שלא עושות דבר, ומחזירים ערכים סטטיים של ערכים מוחזרים. פעולה זו מאפשרת להדר לבצע אופטימיזציה של קוד המת ללא שימוש ב- #ifdef's. לדוגמה:
``` if (ConnectivityMgr().GetWoBLEServiceMode() != ConnectivityManager::kWoBLEServiceMode_NotSupported) { // ... do you some onעזר on Devices that the WoBLE ... } ```
תפקידים ציבוריים |
|
---|---|
_GetBLEDeviceName(char *buf, size_t bufSize)
|
|
_GetWoBLEServiceMode(void)
|
ConnectivityManager::WoBLEServiceMode
|
_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 *
|
תפקידים ציבוריים
_GetBLEDeviceName
WEAVE_ERROR _GetBLEDeviceName( char *buf, size_t bufSize )
_GetWoBLEServiceMode
ConnectivityManager::WoBLEServiceMode _GetWoBLEServiceMode( 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 )