nl:: Weave:: DeviceLayer:: Internal:: GenericConnectivityManagerImpl_NoWiFi
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConnectivityManagerImpl_NoWiFi.h>
針對不支援 Wi-Fi 的平台,提供一般的 Wi-Fi 專用 ConnectivityManager 功能實作。
摘要
此類別是要由 ConnectivityManagerImpl 類別直接繼承 (直接或間接沿用),而該類別也會顯示為範本的 ImplClass 參數。
這個類別的成員都是不會執行任何動作的內嵌方法,會傳回靜態傳回值。這樣一來,編譯器就能在不使用 #ifdef 的情況下,最佳化無用程式碼。例如:
``` if (ConnectivityMgr().GetWiFiStationMode() != ConnectivityManager::kWiFiStationMode_NotSupported) { // ... do something on devices that support WiFi ... } ```
公開函式 |
|
---|---|
_CanStartWiFiScan()
|
bool
|
_ClearWiFiStationProvision(void)
|
void
|
_DemandStartWiFiAP(void)
|
void
|
_GetAndLogWifiStatsCounters(void)
|
|
_GetWiFiAPIdleTimeoutMS(void)
|
uint32_t
|
_GetWiFiAPMode(void)
|
ConnectivityManager::WiFiAPMode
|
_GetWiFiStationMode(void)
|
ConnectivityManager::WiFiStationMode
|
_GetWiFiStationReconnectIntervalMS(void)
|
uint32_t
|
_IsWiFiAPActive(void)
|
bool
|
_IsWiFiAPApplicationControlled(void)
|
bool
|
_IsWiFiStationApplicationControlled(void)
|
bool
|
_IsWiFiStationConnected(void)
|
bool
|
_IsWiFiStationEnabled(void)
|
bool
|
_IsWiFiStationProvisioned(void)
|
bool
|
_MaintainOnDemandWiFiAP(void)
|
void
|
_OnWiFiScanDone()
|
void
|
_OnWiFiStationProvisionChange()
|
void
|
_SetWiFiAPIdleTimeoutMS(uint32_t val)
|
void
|
_SetWiFiAPMode(ConnectivityManager::WiFiAPMode val)
|
|
_SetWiFiStationMode(ConnectivityManager::WiFiStationMode val)
|
|
_SetWiFiStationReconnectIntervalMS(uint32_t val)
|
|
_StopOnDemandWiFiAP(void)
|
void
|
公開的靜態函式 |
|
---|---|
_WiFiAPModeToStr(ConnectivityManager::WiFiAPMode mode)
|
const char *
|
_WiFiStationModeToStr(ConnectivityManager::WiFiStationMode mode)
|
const char *
|
公開函式
_CanStartWiFiScan
bool _CanStartWiFiScan()
_ClearWiFiStationProvision
void _ClearWiFiStationProvision( void )
_DemandStartWiFiAP
void _DemandStartWiFiAP( void )
_GetAndLogWifiStatsCounters
WEAVE_ERROR _GetAndLogWifiStatsCounters( void )
_GetWiFiAPIdleTimeoutMS
uint32_t _GetWiFiAPIdleTimeoutMS( void )
_GetWiFiAPMode
ConnectivityManager::WiFiAPMode _GetWiFiAPMode( void )
_GetWiFiStationMode
ConnectivityManager::WiFiStationMode _GetWiFiStationMode( void )
_GetWiFiStationReconnectIntervalMS
uint32_t _GetWiFiStationReconnectIntervalMS( void )
_IsWiFiAPActive
bool _IsWiFiAPActive( void )
_IsWiFiAPApplicationControlled
bool _IsWiFiAPApplicationControlled( void )
_IsWiFiStationApplicationControlled
bool _IsWiFiStationApplicationControlled( void )
_IsWiFiStationConnected
bool _IsWiFiStationConnected( void )
_IsWiFiStationEnabled
bool _IsWiFiStationEnabled( void )
_IsWiFiStationProvisioned
bool _IsWiFiStationProvisioned( void )
_MaintainOnDemandWiFiAP
void _MaintainOnDemandWiFiAP( void )
_OnWiFiScanDone
void _OnWiFiScanDone()
_OnWiFiStationProvisionChange
void _OnWiFiStationProvisionChange()
_SetWiFiAPIdleTimeoutMS
void _SetWiFiAPIdleTimeoutMS( uint32_t val )
_SetWiFiAPMode
WEAVE_ERROR _SetWiFiAPMode( ConnectivityManager::WiFiAPMode val )
_SetWiFiStationMode
WEAVE_ERROR _SetWiFiStationMode( ConnectivityManager::WiFiStationMode val )
_SetWiFiStationReconnectIntervalMS
WEAVE_ERROR _SetWiFiStationReconnectIntervalMS( uint32_t val )
_StopOnDemandWiFiAP
void _StopOnDemandWiFiAP( void )
公開的靜態函式
_WiFiAPModeToStr
const char * _WiFiAPModeToStr( ConnectivityManager::WiFiAPMode mode )
_WiFiStationModeToStr
const char * _WiFiStationModeToStr( ConnectivityManager::WiFiStationMode mode )