nl:: Weave:: DeviceLayer:: Internal:: GenericConnectivityManagerImpl_NoBLE
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConnectivityManagerImpl_NoBLE.h>
針對不支援 BLE 的平台提供一般實作的 BLE 專用 ConnectivityManager 功能。
摘要
此類別可由 ConnectivityManagerImpl 類別繼承 (直接或間接),而這也是範本的 ImplClass 參數。
此類別的成員都是不會執行任何動作的內嵌方法,並傳回靜態回傳值。這樣一來,編譯器就能在不使用 #ifdef 的情況下最佳化無效程式碼。例如:
``` if (ConnectivityMgr().GetWoBLEServiceMode() != ConnectivityManager::kWoBLEServiceMode_NotSupported) { // ... 在支援 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 *
|
公用函式
_取得裝置名稱
WEAVE_ERROR _GetBLEDeviceName( char *buf, size_t bufSize )
_取得服務模式
ConnectivityManager::WoBLEServiceMode _GetWoBLEServiceMode( void )
_IsBLEAdvertising 已啟用
bool _IsBLEAdvertisingEnabled( void )
_IsBLEFastAdvertisingEnabled
bool _IsBLEFastAdvertisingEnabled( void )
_NumBLEConnections
uint16_t _NumBLEConnections( void )
_SetBLE 廣告已啟用
WEAVE_ERROR _SetBLEAdvertisingEnabled( bool val )
_設定裝置名稱
WEAVE_ERROR _SetBLEDeviceName( const char *deviceName )
_SetBLEFastAdvertising 已啟用
WEAVE_ERROR _SetBLEFastAdvertisingEnabled( bool val )
_SetWoBLEServiceMode
WEAVE_ERROR _SetWoBLEServiceMode( ConnectivityManager::WoBLEServiceMode val )
公開的靜態函式
_WoBLEServiceModeToStr
const char * _WoBLEServiceModeToStr( ConnectivityManager::WoBLEServiceMode mode )