提供意見
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
nl:: Weave:: DeviceLayer:: Internal:: GenericNetworkProvisioningServerImpl
摘要
繼承
沿用來源:
nl::Weave::Profiles::NetworkProvisioning::NetworkProvisioningServer
nl::Weave::Profiles::NetworkProvisioning::NetworkProvisioningDelegate
受保護的類型
NetworkInfo
::nl::Weave::DeviceLayer::Internal::DeviceNetworkInfo NetworkInfo
NetworkType_t
::nl::Weave::Profiles::NetworkProvisioning::NetworkType NetworkType_t
PacketBuffer
::nl::Weave::System::PacketBuffer PacketBuffer
ServerBaseClass
::nl::Weave::Profiles::NetworkProvisioning::NetworkProvisioningServer ServerBaseClass
狀態
State
WiFiSecurityType_t
::nl::Weave::Profiles::NetworkProvisioning::WiFiSecurityType WiFiSecurityType_t
受保護的屬性
mScanNetworkType
uint8_t mScanNetworkType
mState
uint8_t mState
mTestConnectivityResult
struct nl::Weave::DeviceLayer::Internal::GenericNetworkProvisioningServerImpl::@405 mTestConnectivityResult
公開屬性
mStatusCode
uint16_t mStatusCode
mStatusProfileId
uint32_t mStatusProfileId
受保護的函式
ContinueThreadConnectivityTest
void ContinueThreadConnectivityTest(
void
)
ContinueWiFiConnectivityTest
void ContinueWiFiConnectivityTest(
void
)
DoInit
WEAVE_ERROR DoInit(
void
)
GetCurrentOp
int16_t GetCurrentOp(
void
) const
HandleAddNetwork
WEAVE_ERROR HandleAddNetwork(
PacketBuffer *networkInfoTLV
) override
HandleAddUpdateNetwork
WEAVE_ERROR HandleAddUpdateNetwork(
PacketBuffer *networkInfoTLV,
bool add
)
HandleConnectivityTestSuccess
void HandleConnectivityTestSuccess(
void
)
HandleDisableNetwork
virtual WEAVE_ERROR HandleDisableNetwork(
uint32_t networkId
) override
停用指定網路。
詳細說明
參數
[in] networkId
要停用的聯播網 ID。
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致裝置無法停用網路。
HandleEnableDisableNetwork
WEAVE_ERROR HandleEnableDisableNetwork(
uint32_t networkId,
bool enable
)
HandleEnableNetwork
virtual WEAVE_ERROR HandleEnableNetwork(
uint32_t networkId
) override
啟用指定的聯播網。
詳細說明
參數
[in] networkId
要啟用的聯播網 ID。
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致裝置無法啟用網路。
HandleGetNetworks
virtual WEAVE_ERROR HandleGetNetworks(
uint8_t flags
) override
取得已設定的網路。
詳細說明
參數
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致裝置無法取得設定的網路。
HandleRemoveNetwork
virtual WEAVE_ERROR HandleRemoveNetwork(
uint32_t networkId
) override
移除已設定的網路。
詳細說明
參數
[in] networkId
要移除的聯播網 ID。
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致裝置無法移除網路。
HandleScanNetworks
virtual WEAVE_ERROR HandleScanNetworks(
uint8_t networkType
) override
執行網路掃描。
詳細說明
參數
[in] networkType
要掃描的技術 (例如 Wi-Fi 或 Thread)。
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致裝置無法掃描網路。
另請參閱: #NetworkType 瞭解有效類型。
HandleSetRendezvousMode
virtual WEAVE_ERROR HandleSetRendezvousMode(
uint16_t rendezvousMode
) override
設定 rendezvous 模式。
詳細說明
參數
[in] rendezvousMode
要使用的慢速模式。
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致裝置無法設定慢速模式。
另請參閱: #RendezvousModeFlags 瞭解有效模式。
HandleTestConnectivity
virtual WEAVE_ERROR HandleTestConnectivity(
uint32_t networkId
) override
測試指定網路的連線能力。
詳細說明
參數
[in] networkId
用於測試連線的網路 ID。
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,表示發生錯誤,導致裝置無法測試連線。
HandleUpdateNetwork
WEAVE_ERROR HandleUpdateNetwork(
PacketBuffer *networkInfoTLV
) override
IsPairedToAccount
virtual bool IsPairedToAccount(
void
) const override
SetThreadProvisionDefaults
WEAVE_ERROR SetThreadProvisionDefaults(
bool isUpdate,
DeviceNetworkInfo & netInfo
)
ValidateThreadProvision
WEAVE_ERROR ValidateThreadProvision(
bool isUpdate,
const DeviceNetworkInfo & netInfo,
uint32_t & statusProfileId,
uint16_t & statusCode
)
ValidateWiFiStationProvision
WEAVE_ERROR ValidateWiFiStationProvision(
const DeviceNetworkInfo & netInfo,
uint32_t & statusProfileId,
uint16_t & statusCode
)
_取得委派
NetworkProvisioningDelegate * _GetDelegate(
void
)
void _OnPlatformEvent(
const WeaveDeviceEvent *event
)
_掃描中
bool _ScanInProgress(
void
)
_開始待處理掃描
void _StartPendingScan(
void
)
受保護的靜態函式
HandleConnectivityTestTimeOut
void HandleConnectivityTestTimeOut(
::nl::Weave::System::Layer *aLayer,
void *aAppState,
::nl::Weave::System::Error aError
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
上次更新時間:2023-12-02 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
想進一步說明嗎?