nl::Weave::Profiles::Vendor::Nestlabs::DropcamLegacyPairing::DropcamLegacyPairingServer

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

Dropcam Legacy Pairing プロファイルを実装するためのサーバークラス。

概要

継承

継承元: nl::Weave::WeaveServerBase

コンストラクタとデストラクタ

DropcamLegacyPairingServer(void)
Dropcam Legacy Pairing Server を null 初期化します。

プロテクト属性

mDelegate

パブリック関数

Init(WeaveExchangeManager *exchangeMgr)
Dropcam Legacy Pairing Server の状態を初期化し、Dropcam Legacy Pairing メッセージを受信するための登録を行います。
SetDelegate(DropcamLegacyPairingDelegate *delegate)
void
Dropcam のレガシーペア設定サーバーのイベントを処理するようにデリゲートを設定します。
Shutdown(void)
Dropcam Legacy のペア設定サーバーをシャットダウンします。

保護された静的関数

HandleClientRequest(ExchangeContext *ec, const IPPacketInfo *pktInfo, const WeaveMessageInfo *msgInfo, uint32_t profileId, uint8_t msgType, PacketBuffer *payload)
void

プロテクト関数

DropcamLegacyPairingServer(const DropcamLegacyPairingServer &)
HandleCameraAuthDataRequest(ExchangeContext *ec, PacketBuffer *& msgBuf)

プロテクト属性

mDelegate

DropcamLegacyPairingDelegate * mDelegate

パブリック関数

DropcamLegacyPairingServer

 DropcamLegacyPairingServer(
  void
)

Dropcam Legacy Pairing Server を null 初期化します。

使用前に Init() を呼び出す必要があります。

init

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeMgr
)

Dropcam Legacy Pairing Server の状態を初期化し、Dropcam Legacy Pairing メッセージを受信するための登録を行います。

詳細
パラメータ
[in] exchangeMgr
Weave Exchange マネージャーへのポインタ。
戻り値
WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS
あまりにも多くの未承諾メッセージ ハンドラが登録されている場合。
WEAVE_NO_ERROR
成功時。

SetDelegate

void SetDelegate(
  DropcamLegacyPairingDelegate *delegate
)

Dropcam のレガシーペア設定サーバーのイベントを処理するようにデリゲートを設定します。

詳細
パラメータ
[in] delegate
Dropcam Legacy Pairing Delegate へのポインタ。

シャットダウン

WEAVE_ERROR Shutdown(
  void
)

Dropcam Legacy のペア設定サーバーをシャットダウンします。

詳細
戻り値
WEAVE_NO_ERROR
作成できます。

保護された静的関数

HandleClientRequest

void HandleClientRequest(
  ExchangeContext *ec,
  const IPPacketInfo *pktInfo,
  const WeaveMessageInfo *msgInfo,
  uint32_t profileId,
  uint8_t msgType,
  PacketBuffer *payload
)

プロテクト関数

DropcamLegacyPairingServer

 DropcamLegacyPairingServer(
  const DropcamLegacyPairingServer &
)

HandleCameraAuthDataRequest

WEAVE_ERROR HandleCameraAuthDataRequest(
  ExchangeContext *ec,
  PacketBuffer *& msgBuf
)