Google is committed to advancing racial equity for Black communities. See how.

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

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

Server class for implementing the Dropcam Legacy Pairing profile.

Summary

Inheritance

Inherits from: nl::Weave::WeaveServerBase

Constructors and Destructors

DropcamLegacyPairingServer(void)
Null-initialize the Dropcam Legacy Pairing Server.

Protected attributes

mDelegate

Public functions

Init(WeaveExchangeManager *exchangeMgr)
Initialize the Dropcam Legacy Pairing Server state and register to receive Dropcam Legacy Pairing messages.
SetDelegate(DropcamLegacyPairingDelegate *delegate)
void
Set the delegate to process Dropcam Legacy Pairing Server events.
Shutdown(void)
Shutdown the Dropcam Legacy Pairing Server.

Protected static functions

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

Protected functions

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

Protected attributes

mDelegate

DropcamLegacyPairingDelegate * mDelegate

Public functions

DropcamLegacyPairingServer

 DropcamLegacyPairingServer(
  void
)

Null-initialize the Dropcam Legacy Pairing Server.

Must call Init() prior to use.

Init

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeMgr
)

Initialize the Dropcam Legacy Pairing Server state and register to receive Dropcam Legacy Pairing messages.

Details
Parameters
[in] exchangeMgr
A pointer to the Weave Exchange Manager.
Return Values
WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS
When too many unsolicited message handlers are registered.
WEAVE_NO_ERROR
On success.

SetDelegate

void SetDelegate(
  DropcamLegacyPairingDelegate *delegate
)

Set the delegate to process Dropcam Legacy Pairing Server events.

Details
Parameters
[in] delegate
A pointer to the Dropcam Legacy Pairing Delegate.

Shutdown

WEAVE_ERROR Shutdown(
  void
)

Shutdown the Dropcam Legacy Pairing Server.

Details
Return Values
WEAVE_NO_ERROR
unconditionally.

Protected static functions

HandleClientRequest

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

Protected functions

DropcamLegacyPairingServer

 DropcamLegacyPairingServer(
  const DropcamLegacyPairingServer &
)

HandleCameraAuthDataRequest

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