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

NL::編織::設備層::配置管理器

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

提供對 Weave 設備的運行時和構建時配置信息的訪問。

概括

遺產

直接已知的子類:
  nl::Weave::DeviceLayer::ConfigurationManagerImpl
  nl::Weave::DeviceLayer::ConfigurationManagerImpl
  nl::Weave::DeviceLayer::ConfigurationManagerImpl

公共類型

@388枚舉

朋友班

::nl::Weave::DeviceLayer::Internal::DeviceControlServer
friend class
::nl::Weave::DeviceLayer::Internal::GenericPlatformManagerImpl
friend class
::nl::Weave::DeviceLayer::PlatformManagerImpl
friend class
::nl::Weave::DeviceLayer::TraitManager
friend class

公共職能

ClearServiceProvisioningData ()
ComputeProvisioningHash (uint8_t *hashBuf, size_t hashBufSize)
GetBLEDeviceIdentificationInfo ( Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo)
GetDeviceCertificate (uint8_t *buf, size_t bufSize, size_t & certLen)
GetDeviceDescriptor ( 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)
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)
供應商分配的設備產品 ID。
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)
生產設備的供應商的 ID。
GetWiFiAPSSID (char *buf, size_t bufSize)
InitiateFactoryReset ()
void
IsFullyProvisioned ()
bool
IsMemberOfFabric ()
bool
IsPairedToAccount ()
bool
IsServiceProvisioned ()
bool
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)

受保護的功能

ConfigurationManager ()=default
ConfigurationManager (const ConfigurationManager &)=delete
ConfigurationManager (const ConfigurationManager &&)=delete
operator= (const ConfigurationManager &)=delete
~ConfigurationManager ()=default

公共類型

@388

 @388

朋友班

::nl::Weave::DeviceLayer::Internal::DeviceControlServer

friend class ::nl::Weave::DeviceLayer::Internal::DeviceControlServer

::nl::Weave::DeviceLayer::Internal::GenericPlatformManagerImpl

friend class ::nl::Weave::DeviceLayer::Internal::GenericPlatformManagerImpl

::nl::Weave::DeviceLayer::PlatformManagerImpl

friend class ::nl::Weave::DeviceLayer::PlatformManagerImpl

::nl::Weave::DeviceLayer::TraitManager

friend class ::nl::Weave::DeviceLayer::TraitManager

公共職能

清除服務供應數據

WEAVE_ERROR ClearServiceProvisioningData()

ComputeProvisioningHash

WEAVE_ERROR ComputeProvisioningHash(
  uint8_t *hashBuf,
  size_t hashBufSize
)

獲取BLE設備標識信息

WEAVE_ERROR GetBLEDeviceIdentificationInfo(
  Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo
)

獲取設備證書

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

獲取設備描述符

WEAVE_ERROR GetDeviceDescriptor(
  WeaveDeviceDescriptor & deviceDesc
)

獲取設備描述符TLV

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

獲取設備 ID

WEAVE_ERROR GetDeviceId(
  uint64_t & deviceId
)

GetDeviceIntermediateCACerts

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

獲取設備私鑰

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

獲取FabricId

WEAVE_ERROR GetFabricId(
  uint64_t & fabricId
)

獲取固件構建時間

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
)

獲取製造商設備證書

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

獲取製造商設備 ID

WEAVE_ERROR GetManufacturerDeviceId(
  uint64_t & deviceId
)

獲取ManufacturerDeviceIntermediateCACerts

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
)

獲取Primary802154MAC地址

WEAVE_ERROR GetPrimary802154MACAddress(
  uint8_t *buf
)

獲取主要WiFiMAC地址

WEAVE_ERROR GetPrimaryWiFiMACAddress(
  uint8_t *buf
)

獲取產品編號

WEAVE_ERROR GetProductId(
  uint16_t & productId
)

供應商分配的設備產品 ID。

獲取產品修訂

WEAVE_ERROR GetProductRevision(
  uint16_t & productRev
)

供應商分配的產品修訂號。

獲取二維碼字符串

WEAVE_ERROR GetQRCodeString(
  char *buf,
  size_t bufSize
)

獲取序列號

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

獲取服務配置

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

獲取服務標識

WEAVE_ERROR GetServiceId(
  uint64_t & serviceId
)

獲取供應商 ID

WEAVE_ERROR GetVendorId(
  uint16_t & vendorId
)

生產設備的供應商的 ID。

獲取WiFiAPSSID

WEAVE_ERROR GetWiFiAPSSID(
  char *buf,
  size_t bufSize
)

啟動恢復出廠設置

void InitiateFactoryReset()

完全預配

bool IsFullyProvisioned()

IsMemberOfFabric

bool IsMemberOfFabric()

與帳戶配對

bool IsPairedToAccount()

是否提供服務

bool IsServiceProvisioned()

存儲結構 ID

WEAVE_ERROR StoreFabricId(
  uint64_t fabricId
)

商店製造商設備證書

WEAVE_ERROR StoreManufacturerDeviceCertificate(
  const uint8_t *cert,
  size_t certLen
)

商店製造商設備 ID

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
)

StorePairedAccountId

WEAVE_ERROR StorePairedAccountId(
  const char *accountId,
  size_t accountIdLen
)

商店配對碼

WEAVE_ERROR StorePairingCode(
  const char *pairingCode,
  size_t pairingCodeLen
)

StorePrimary802154MAC 地址

WEAVE_ERROR StorePrimary802154MACAddress(
  const uint8_t *buf
)

StorePrimaryWiFiMAC地址

WEAVE_ERROR StorePrimaryWiFiMACAddress(
  const uint8_t *buf
)

商店產品修訂

WEAVE_ERROR StoreProductRevision(
  uint16_t productRev
)

商店序列號

WEAVE_ERROR StoreSerialNumber(
  const char *serialNum,
  size_t serialNumLen
)

存儲服務配置

l10n-佔位符=52

商店服務供應數據

l10n-佔位符=53

受保護的功能

配置管理器

l10n-佔位符=54

配置管理器

l10n-佔位符=55

配置管理器

l10n-佔位符=56

運算符=

l10n-佔位符=57

~配置管理器

l10n-佔位符=58