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

This is an abstract class.

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

Delegate class for implementing incoming Dropcam Legacy Pairing operations on the server device.

Summary

Inheritance

Inherits from: nl::Weave::WeaveServerDelegateBase

Public functions

EnforceAccessControl(ExchangeContext *ec, uint32_t msgProfileId, uint8_t msgType, const WeaveMessageInfo *msgInfo, AccessControlResult & result)
virtual void
Enforce message-level access control for an incoming Dropcam Legacy Pairing request message.
GetCameraMACAddress(uint8_t(&) macAddress[EUI48_LEN])=0
virtual WEAVE_ERROR
Retrieve camera's EUI-48 WiFi MAC address.
GetCameraSecret(uint8_t(&) secret[CAMERA_SECRET_LEN])=0
virtual WEAVE_ERROR
Retrieve camera's 32-byte secret, shared with the service and used to generate auth_data HMAC.

Public functions

EnforceAccessControl

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

Enforce message-level access control for an incoming Dropcam Legacy Pairing request message.

Details
Parameters
[in] ec
The ExchangeContext over which the message was received.
[in] msgProfileId
The profile id of the received message.
[in] msgType
The message type of the received message.
[in] msgInfo
A WeaveMessageInfo structure containing information about the received message.
[in,out] result
An enumerated value describing the result of access control policy evaluation for the received message. Upon entry to the method, the value represents the tentative result at the current point in the evaluation process. Upon return, the result is expected to represent the final assessment of access control policy for the message.

GetCameraMACAddress

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

Retrieve camera's EUI-48 WiFi MAC address.

Details
Parameters
[in] macAddress
Reference to buffer for the returned MAC address, represented as NULL-terminated string of hex values without separators.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing generation of the Dropcam API parameters.

GetCameraSecret

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

Retrieve camera's 32-byte secret, shared with the service and used to generate auth_data HMAC.

Details
Parameters
[in] secret
Reference to CAMERA_SECRET_LEN-byte buffer for camera secret
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing generation of the Dropcam API parameters.