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

nl::Weave::DeviceLayer::內部::GeneralConfigurationManagerImpl

#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConfigurationManagerImpl.h>

提供適用於多個平台的 ConfigurationManager 功能的一般實作。

總結

這個範本包含適用於 ConfigurationManager 抽象介面的精選功能,該功能已在所有平台上使用。而是由 ConfigurationManagerImpl 類別繼承 (間接或間接)。

受保護類型

@404 列舉

受保護的屬性

mFlags
uint8_t

公開函式

_ClearServiceProvisioningData()
_ComputeProvisioningHash(uint8_t *hashBuf, size_t hashBufSize)
_ConfigureWeaveStack()
_GetBLEDeviceIdentificationInfo(Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo)
_GetDeviceCertificate(uint8_t *buf, size_t bufSize, size_t & certLen)
_GetDeviceDescriptor(::nl::Weave::Profiles::DeviceDescription::WeaveDeviceDescriptor & deviceDesc)
_GetDeviceDescriptorTLV(uint8_t *buf, size_t bufSize, size_t & encodedLen)
_GetDeviceId(uint64_t & deviceId)
_GetDeviceIntermediateCACerts(uint8_t *buf, size_t bufSize, size_t & certsLen)
_GetDevicePrivateKey(uint8_t *buf, size_t bufSize, size_t & keyLen)
_GetFabricId(uint64_t & fabricId)
_GetFailSafeArmed(bool & val)
_GetFirmwareBuildTime(uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, uint8_t & hour, uint8_t & minute, uint8_t & second)
_GetFirmwareRevision(char *buf, size_t bufSize, size_t & outLen)
_GetManufacturerDeviceCertificate(uint8_t *buf, size_t bufSize, size_t & certLen)
_GetManufacturerDeviceId(uint64_t & deviceId)
_GetManufacturerDeviceIntermediateCACerts(uint8_t *buf, size_t bufSize, size_t & certsLen)
_GetManufacturerDevicePrivateKey(uint8_t *buf, size_t bufSize, size_t & keyLen)
_GetManufacturingDate(uint16_t & year, uint8_t & month, uint8_t & dayOfMonth)
_GetPairedAccountId(char *buf, size_t bufSize, size_t & accountIdLen)
_GetPairingCode(char *buf, size_t bufSize, size_t & pairingCodeLen)
_GetPrimary802154MACAddress(uint8_t *buf)
_GetPrimaryWiFiMACAddress(uint8_t *buf)
_GetProductId(uint16_t & productId)
_GetProductRevision(uint16_t & productRev)
_GetQRCodeString(char *buf, size_t bufSize)
_GetSerialNumber(char *buf, size_t bufSize, size_t & serialNumLen)
_GetServiceConfig(uint8_t *buf, size_t bufSize, size_t & serviceConfigLen)
_GetServiceId(uint64_t & serviceId)
_GetVendorId(uint16_t & vendorId)
_GetWiFiAPSSID(char *buf, size_t bufSize)
_Init()
_IsFullyProvisioned()
bool
_IsMemberOfFabric()
bool
_IsPairedToAccount()
bool
_IsServiceProvisioned()
bool
_SetFailSafeArmed(bool val)
_StoreFabricId(uint64_t fabricId)
_StoreManufacturerDeviceCertificate(const uint8_t *cert, size_t certLen)
_StoreManufacturerDeviceId(uint64_t deviceId)
_StoreManufacturerDeviceIntermediateCACerts(const uint8_t *certs, size_t certsLen)
_StoreManufacturerDevicePrivateKey(const uint8_t *key, size_t keyLen)
_StoreManufacturingDate(const char *mfgDate, size_t mfgDateLen)
_StorePairedAccountId(const char *accountId, size_t accountIdLen)
_StorePairingCode(const char *pairingCode, size_t pairingCodeLen)
_StorePrimary802154MACAddress(const uint8_t *buf)
_StorePrimaryWiFiMACAddress(const uint8_t *buf)
_StoreProductRevision(uint16_t productRev)
_StoreSerialNumber(const char *serialNum, size_t serialNumLen)
_StoreServiceConfig(const uint8_t *serviceConfig, size_t serviceConfigLen)
_StoreServiceProvisioningData(uint64_t serviceId, const uint8_t *serviceConfig, size_t serviceConfigLen, const char *accountId, size_t accountIdLen)

受保護的函式

LogDeviceConfig()
void
PersistProvisioningData(ProvisioningDataSet & provData)

受保護類型

@404

 @404

受保護的屬性

mFlags

uint8_t mFlags

公開函式

_ClearServiceProvisioningData

WEAVE_ERROR _ClearServiceProvisioningData()

_Compute 帳戶管理 Hash

WEAVE_ERROR _ComputeProvisioningHash(
  uint8_t *hashBuf,
  size_t hashBufSize
)

_ConfigureWeaveStack

WEAVE_ERROR _ConfigureWeaveStack()

_取得裝置識別資訊

WEAVE_ERROR _GetBLEDeviceIdentificationInfo(
  Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo
)

_取得裝置憑證

WEAVE_ERROR _GetDeviceCertificate(
  uint8_t *buf,
  size_t bufSize,
  size_t & certLen
)

_Get 裝置描述元

WEAVE_ERROR _GetDeviceDescriptor(
  ::nl::Weave::Profiles::DeviceDescription::WeaveDeviceDescriptor & deviceDesc
)

_GetDevice 描述元 TLV

WEAVE_ERROR _GetDeviceDescriptorTLV(
  uint8_t *buf,
  size_t bufSize,
  size_t & encodedLen
)

_Get 裝置 ID

WEAVE_ERROR _GetDeviceId(
  uint64_t & deviceId
)

_取得裝置中繼憑證

WEAVE_ERROR _GetDeviceIntermediateCACerts(
  uint8_t *buf,
  size_t bufSize,
  size_t & certsLen
)

_取得裝置私密金鑰

WEAVE_ERROR _GetDevicePrivateKey(
  uint8_t *buf,
  size_t bufSize,
  size_t & keyLen
)

_GetFabricId

WEAVE_ERROR _GetFabricId(
  uint64_t & fabricId
)

_GetFailSafeArmed

WEAVE_ERROR _GetFailSafeArmed(
  bool & val
)

_取得韌體建構時間

WEAVE_ERROR _GetFirmwareBuildTime(
  uint16_t & year,
  uint8_t & month,
  uint8_t & dayOfMonth,
  uint8_t & hour,
  uint8_t & minute,
  uint8_t & second
)

_取得韌體修訂版本

WEAVE_ERROR _GetFirmwareRevision(
  char *buf,
  size_t bufSize,
  size_t & outLen
)

_GetManufacturerDeviceCertificate

WEAVE_ERROR _GetManufacturerDeviceCertificate(
  uint8_t *buf,
  size_t bufSize,
  size_t & certLen
)

_GetManufacturerDeviceId

WEAVE_ERROR _GetManufacturerDeviceId(
  uint64_t & deviceId
)

_取得製造商裝置中介憑證授權單位憑證

WEAVE_ERROR _GetManufacturerDeviceIntermediateCACerts(
  uint8_t *buf,
  size_t bufSize,
  size_t & certsLen
)

_GetManufacturerDevicePrivateKey

WEAVE_ERROR _GetManufacturerDevicePrivateKey(
  uint8_t *buf,
  size_t bufSize,
  size_t & keyLen
)

_立即取得日期

WEAVE_ERROR _GetManufacturingDate(
  uint16_t & year,
  uint8_t & month,
  uint8_t & dayOfMonth
)

_取得配對帳戶 ID

WEAVE_ERROR _GetPairedAccountId(
  char *buf,
  size_t bufSize,
  size_t & accountIdLen
)

_取得配對代碼

WEAVE_ERROR _GetPairingCode(
  char *buf,
  size_t bufSize,
  size_t & pairingCodeLen
)

_取得主要 802154MAC 位址

WEAVE_ERROR _GetPrimary802154MACAddress(
  uint8_t *buf
)

_取得主要的 WiFiMAC 位址

WEAVE_ERROR _GetPrimaryWiFiMACAddress(
  uint8_t *buf
)

_取得產品 ID

WEAVE_ERROR _GetProductId(
  uint16_t & productId
)

_取得產品修訂版本

WEAVE_ERROR _GetProductRevision(
  uint16_t & productRev
)

_GetQRCodeString

WEAVE_ERROR _GetQRCodeString(
  char *buf,
  size_t bufSize
)

_取得序號

WEAVE_ERROR _GetSerialNumber(
  char *buf,
  size_t bufSize,
  size_t & serialNumLen
)

.GetServiceConfig

WEAVE_ERROR _GetServiceConfig(
  uint8_t *buf,
  size_t bufSize,
  size_t & serviceConfigLen
)

_GetService 編號

WEAVE_ERROR _GetServiceId(
  uint64_t & serviceId
)

_取得供應商 ID

WEAVE_ERROR _GetVendorId(
  uint16_t & vendorId
)

_取得 WiFiAPSSID

WEAVE_ERROR _GetWiFiAPSSID(
  char *buf,
  size_t bufSize
)

_Init

WEAVE_ERROR _Init()

_完整佈建

bool _IsFullyProvisioned()

_衣著面料

bool _IsMemberOfFabric()

_配對帳戶

bool _IsPairedToAccount()

_IsService 已佈建

bool _IsServiceProvisioned()

_已設定安全啟動

WEAVE_ERROR _SetFailSafeArmed(
  bool val
)

_StoreFabricId

WEAVE_ERROR _StoreFabricId(
  uint64_t fabricId
)

_StoreManufacturerDeviceCertificate

WEAVE_ERROR _StoreManufacturerDeviceCertificate(
  const uint8_t *cert,
  size_t certLen
)

_StoreManufacturerDeviceId

WEAVE_ERROR _StoreManufacturerDeviceId(
  uint64_t deviceId
)

_StoreManufacturerDeviceIntermediateCACerts

WEAVE_ERROR _StoreManufacturerDeviceIntermediateCACerts(
  const uint8_t *certs,
  size_t certsLen
)

_StoreManufacturerDevicePrivateKey

WEAVE_ERROR _StoreManufacturerDevicePrivateKey(
  const uint8_t *key,
  size_t keyLen
)

_門市製造日期

WEAVE_ERROR _StoreManufacturingDate(
  const char *mfgDate,
  size_t mfgDateLen
)

_S:配對帳戶 ID

WEAVE_ERROR _StorePairedAccountId(
  const char *accountId,
  size_t accountIdLen
)

_Store 配對代碼

WEAVE_ERROR _StorePairingCode(
  const char *pairingCode,
  size_t pairingCodeLen
)

_StorePrimary802154MAC 位址

WEAVE_ERROR _StorePrimary802154MACAddress(
  const uint8_t *buf
)

_儲存主要 WiFiMAC 位址

WEAVE_ERROR _StorePrimaryWiFiMACAddress(
  const uint8_t *buf
)

_商店產品修訂版本

WEAVE_ERROR _StoreProductRevision(
  uint16_t productRev
)

_商店序號

WEAVE_ERROR _StoreSerialNumber(
  const char *serialNum,
  size_t serialNumLen
)

_儲存服務設定

WEAVE_ERROR _StoreServiceConfig(
  const uint8_t *serviceConfig,
  size_t serviceConfigLen
)

_StoreServiceProvisioningData

WEAVE_ERROR _StoreServiceProvisioningData(
  uint64_t serviceId,
  const uint8_t *serviceConfig,
  size_t serviceConfigLen,
  const char *accountId,
  size_t accountIdLen
)

受保護的函式

記錄裝置設定

void LogDeviceConfig()

PersistProvisioningData

WEAVE_ERROR PersistProvisioningData(
  ProvisioningDataSet & provData
)