nl::Weave::Profiles::Vendor::Nestlabs::DropcamLegacyPairing::DropcamLegacyPairingDelegate

這是抽象類別。

#include <src/lib/profiles/vendor/nestlabs/dropcam-legacy-pairing/DropcamLegacyPairing.h>

這個委派類別,用於在伺服器裝置上實作傳入的 Dropcam 舊版配對作業。

摘要

繼承

沿用來源: nl::Weave::WeaveServerDelegateBase

公用函式

EnforceAccessControl(ExchangeContext *ec, uint32_t msgProfileId, uint8_t msgType, const WeaveMessageInfo *msgInfo, AccessControlResult & result)
virtual void
針對收到的 Dropcam Legacy Pairing 要求訊息強制執行訊息層級存取權控管。
GetCameraMACAddress(uint8_t(&) macAddress[EUI48_LEN])=0
virtual WEAVE_ERROR
擷取相機的 EUI-48 Wi-Fi MAC 位址。
GetCameraSecret(uint8_t(&) secret[CAMERA_SECRET_LEN])=0
virtual WEAVE_ERROR
擷取相機的 32 位元組密鑰,分享給服務,並用於產生 auth_data HMAC。

公用函式

EnforceAccessControl

virtual void EnforceAccessControl(
  ExchangeContext *ec,
  uint32_t msgProfileId,
  uint8_t msgType,
  const WeaveMessageInfo *msgInfo,
  AccessControlResult & result
)

針對收到的 Dropcam Legacy Pairing 要求訊息強制執行訊息層級存取權控管。

詳細說明
參數
[in] ec
接收訊息的 ExchangeContext
[in] msgProfileId
所接收訊息的設定檔 ID。
[in] msgType
接收訊息的訊息類型。
[in] msgInfo
包含接收訊息相關資訊的 WeaveMessageInfo 結構。
[in,out] result
列舉值,說明收到訊息的存取權控管政策評估結果。進入方法時,此值代表評估程序目前時間點的暫定結果。傳回後,結果應代表郵件的存取權控管政策最終評估。

GetCameraMACAddress

virtual WEAVE_ERROR GetCameraMACAddress(
  uint8_t(&) macAddress[EUI48_LEN]
)=0

擷取相機的 EUI-48 Wi-Fi MAC 位址。

詳細說明
參數
[in] macAddress
傳回 MAC 位址的緩衝區參照,以不含分隔符的十六進位值 NULL 結尾字串表示。
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致系統無法產生 Dropcam API 參數。

GetCameraSecret

virtual WEAVE_ERROR GetCameraSecret(
  uint8_t(&) secret[CAMERA_SECRET_LEN]
)=0

擷取相機的 32 位元組密鑰,分享給服務,並用於產生 auth_data HMAC。

詳細說明
參數
[in] secret
相機密鑰的 CAMERA_SECRET_LEN 位元組緩衝區參照
傳回值
WEAVE_NO_ERROR
成功時。
other
其他 Weave 或平台專屬錯誤代碼,會指出發生錯誤,導致系統無法產生 Dropcam API 參數。