透過集合功能整理內容 你可以依據偏好儲存及分類內容。

NL::編織::簡介::服務提供::服務提供服務器

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

用於實現服務供應配置文件的簡單服務器類。

概括

遺產

:從繼承NL ::編織:: WeaveServerBase
直接已知子類: NL ::紡織品:: DeviceLayer ::內部:: ServiceProvisioningServer

構造函數和析構函數

ServiceProvisioningServer (void)

受保護的類型

@307枚舉

受保護的屬性

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

公共屬性

RegisterServicePairAccount
UpdateService

公共職能

GetDelegate (void) const
Init ( WeaveExchangeManager *exchangeMgr)
SendIFJServiceFabricJoinRequest ( Binding *binding, uint64_t serviceId, uint64_t fabricId, const uint8_t *deviceInitData, uint16_t deviceInitDataLen)
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)

公共靜態函數

IsValidServiceConfig (const uint8_t *serviceConfig, uint16_t serviceConfigLen)
bool

受保護的類型

@307

 @307

受保護的屬性

客戶端操作

ExchangeContext * mCurClientOp

mCurClientOpBuf

PacketBuffer * mCurClientOpBuf

mCurClientOpMsg

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

mCurServerOp

ExchangeContext * mCurServerOp

委託

ServiceProvisioningDelegate * mDelegate

服務器操作狀態

uint8_t mServerOpState

公共屬性

註冊服務對帳號

RegisterServicePairAccountMessage RegisterServicePairAccount

更新服務

UpdateServiceMessage UpdateService

公共職能

獲取委託

ServiceProvisioningDelegate * GetDelegate(
  void
) const 

在裡面

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeMgr
)

發送IFJServiceFabricJoinRequest

WEAVE_ERROR SendIFJServiceFabricJoinRequest(
  Binding *binding,
  uint64_t serviceId,
  uint64_t fabricId,
  const uint8_t *deviceInitData,
  uint16_t deviceInitDataLen
)

發送PairDeviceToAccountRequest

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
)

發送PairDeviceToAccountRequest

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
)

發送狀態報告

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

發送成功響應

virtual WEAVE_ERROR SendSuccessResponse(
  void
)

服務提供服務器

 ServiceProvisioningServer(
  void
)

設置委託

void SetDelegate(
  ServiceProvisioningDelegate *delegate
)

關掉

WEAVE_ERROR Shutdown(
  void
)

公共靜態函數

有效服務配置

bool IsValidServiceConfig(
  const uint8_t *serviceConfig,
  uint16_t serviceConfigLen
)