nl::Weave::Profiles::ServiceProvisioning::ServiceProvisioningServer

#include <src/lib/profiles/service-provisioning/ServiceProvisioning.h>

Simple server class for implementing the Service Provisioning profile.

Summary

Inheritance

Inherits from: nl::Weave::WeaveServerBase

Constructors and Destructors

ServiceProvisioningServer(void)

Protected types

@256 enum

Protected attributes

mCurClientOp
mCurClientOpBuf
PacketBuffer *
mCurClientOpMsg
union nl::Weave::Profiles::ServiceProvisioning::ServiceProvisioningServer::@257
mCurServerOp
mDelegate
mServerOpState
uint8_t

Public attributes

RegisterServicePairAccount
UpdateService

Public functions

GetDelegate(void) const
Init(WeaveExchangeManager *exchangeMgr)
SendPairDeviceToAccountRequest(WeaveConnection *serverCon, uint64_t serviceId, uint64_t fabricId, const char *accountId, uint16_t accountIdLen, const uint8_t *pairingToken, uint16_t pairingTokenLen, const uint8_t *pairingInitData, uint16_t pairingInitDataLen, const uint8_t *deviceInitData, uint16_t deviceInitDataLen)
SendPairDeviceToAccountRequest(Binding *binding, uint64_t serviceId, uint64_t fabricId, const char *accountId, uint16_t accountIdLen, const uint8_t *pairingToken, uint16_t pairingTokenLen, const uint8_t *pairingInitData, uint16_t pairingInitDataLen, const uint8_t *deviceInitData, uint16_t deviceInitDataLen)
SendStatusReport(uint32_t statusProfileId, uint16_t statusCode, WEAVE_ERROR sysError)
virtual WEAVE_ERROR
SendSuccessResponse(void)
virtual WEAVE_ERROR
SetDelegate(ServiceProvisioningDelegate *delegate)
void
Shutdown(void)

Public static functions

IsValidServiceConfig(const uint8_t *serviceConfig, uint16_t serviceConfigLen)
bool

Protected types

@256

 @256

Protected attributes

mCurClientOp

ExchangeContext * mCurClientOp

mCurClientOpBuf

PacketBuffer * mCurClientOpBuf

mCurClientOpMsg

union nl::Weave::Profiles::ServiceProvisioning::ServiceProvisioningServer::@257 mCurClientOpMsg

mCurServerOp

ExchangeContext * mCurServerOp

mDelegate

ServiceProvisioningDelegate * mDelegate

mServerOpState

uint8_t mServerOpState

Public attributes

RegisterServicePairAccount

RegisterServicePairAccountMessage RegisterServicePairAccount

UpdateService

UpdateServiceMessage UpdateService

Public functions

GetDelegate

ServiceProvisioningDelegate * GetDelegate(
  void
) const 

Init

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeMgr
)

SendPairDeviceToAccountRequest

WEAVE_ERROR SendPairDeviceToAccountRequest(
  WeaveConnection *serverCon,
  uint64_t serviceId,
  uint64_t fabricId,
  const char *accountId,
  uint16_t accountIdLen,
  const uint8_t *pairingToken,
  uint16_t pairingTokenLen,
  const uint8_t *pairingInitData,
  uint16_t pairingInitDataLen,
  const uint8_t *deviceInitData,
  uint16_t deviceInitDataLen
)

SendPairDeviceToAccountRequest

WEAVE_ERROR SendPairDeviceToAccountRequest(
  Binding *binding,
  uint64_t serviceId,
  uint64_t fabricId,
  const char *accountId,
  uint16_t accountIdLen,
  const uint8_t *pairingToken,
  uint16_t pairingTokenLen,
  const uint8_t *pairingInitData,
  uint16_t pairingInitDataLen,
  const uint8_t *deviceInitData,
  uint16_t deviceInitDataLen
)

SendStatusReport

virtual WEAVE_ERROR SendStatusReport(
  uint32_t statusProfileId,
  uint16_t statusCode,
  WEAVE_ERROR sysError
)

SendSuccessResponse

virtual WEAVE_ERROR SendSuccessResponse(
  void
)

ServiceProvisioningServer

 ServiceProvisioningServer(
  void
)

SetDelegate

void SetDelegate(
  ServiceProvisioningDelegate *delegate
)

Shutdown

WEAVE_ERROR Shutdown(
  void
)

Public static functions

IsValidServiceConfig

bool IsValidServiceConfig(
  const uint8_t *serviceConfig,
  uint16_t serviceConfigLen
)