Google is committed to advancing racial equity for Black communities.
See how.
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
NL::編織::簡介::令牌配對::令牌配對服務器
#include <src/lib/profiles/token-pairing/TokenPairing.h>
用於響應令牌配對請求的服務器對象。
概括
遺產
:從繼承NL ::編織:: WeaveServerBase 受保護的屬性
已發送證書
bool mCertificateSent
公共職能
在裡面
WEAVE_ERROR Init(
WeaveExchangeManager *exchangeMgr
)
初始化令牌配對服務器狀態並註冊以接收令牌配對消息。
param[in] exchangeMgr 指向 Weave Exchange Manager 的指針。
細節 | 返回值 | WEAVE_ERROR_INCORRECT_STATE | 當令牌配對服務器已經註冊時。 | WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS | 當註冊了太多未經請求的消息處理程序時。 | WEAVE_NO_ERROR | 在成功。 |
|
發送狀態報告
virtual WEAVE_ERROR SendStatusReport(
uint32_t statusProfileId,
uint16_t statusCode,
WEAVE_ERROR sysError
)
發送對請求的狀態報告響應。
細節 | 參數 | [in] statusProfileId | 此狀態報告涉及的 Weave 配置文件 ID。 | [in] statusCode | 要包含在此響應中的狀態代碼。 | [in] sysError | 要包含在此響應中的系統錯誤代碼。 |
|
返回值 | WEAVE_ERROR_INCORRECT_STATE | 如果沒有正在處理的請求。 | WEAVE_NO_ERROR | 在成功。 | other | 其他 Weave 或特定於平台的錯誤代碼,表明發生了阻止狀態報告發送的錯誤。 |
|
設置委託
void SetDelegate(
TokenPairingDelegate *delegate
)
設置委託以處理設備控制服務器事件。
細節 | 參數 | [in] delegate | 指向設備控制委託的指針。 |
|
令牌配對服務器
TokenPairingServer(
void
)
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。Thread 是 Thread Group, Inc. 的註冊商標。
上次更新時間:2018-06-05 (世界標準時間)。
[{
"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":"其他"
}]