нл:: Переплетение:: Уровень устройства:: Диспетчер конфигурации

#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)
Идентификатор продукта устройства, назначенный поставщиком.
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)
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

Общественные функции

ClearServiceProvisioningData

WEAVE_ERROR ClearServiceProvisioningData()

ComputeProvisioningHash

WEAVE_ERROR ComputeProvisioningHash(
  uint8_t *hashBuf,
  size_t hashBufSize
)

Получить BLEDeviceIdentificationInfo

WEAVE_ERROR GetBLEDeviceIdentificationInfo(
  Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo
)

Получить сертификат устройства

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

GetDeviceDescriptor

WEAVE_ERROR GetDeviceDescriptor(
  WeaveDeviceDescriptor & deviceDesc
)

GetDeviceDescriptorTLV

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

GetDeviceId

WEAVE_ERROR GetDeviceId(
  uint64_t & deviceId
)

GetDeviceIntermediateCACerts

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

ПолучитьDevicePrivateKey

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

GetFabricId

WEAVE_ERROR GetFabricId(
  uint64_t & fabricId
)

Получить прошивкуBuildTime

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
)

GetManufacturerDeviceId

WEAVE_ERROR GetManufacturerDeviceId(
  uint64_t & deviceId
)

GetManufacturerDeviceIntermediateCACerts

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
)

GetPairedAccountId

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

Получить код сопряжения

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

GetPrimary802154MACAddress

WEAVE_ERROR GetPrimary802154MACAddress(
  uint8_t *buf
)

GetPrimaryWiFiMACAddress

WEAVE_ERROR GetPrimaryWiFiMACAddress(
  uint8_t *buf
)

GetProductId

WEAVE_ERROR GetProductId(
  uint16_t & productId
)

Идентификатор продукта устройства, назначенный поставщиком.

GetProductRevision

WEAVE_ERROR GetProductRevision(
  uint16_t & productRev
)

Номер версии продукта, присвоенный поставщиком.

ПолучитьQRCodeString

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
)

ПолучитьServiceId

WEAVE_ERROR GetServiceId(
  uint64_t & serviceId
)

GetVendorId

WEAVE_ERROR GetVendorId(
  uint16_t & vendorId
)

Идентификатор поставщика, выпустившего устройство.

Получить Wi-FiAPSSID

WEAVE_ERROR GetWiFiAPSSID(
  char *buf,
  size_t bufSize
)

ИнициатеФабричныйСброс

void InitiateFactoryReset()

IsFullyProvisioned

bool IsFullyProvisioned()

IsMemberOfFabric

bool IsMemberOfFabric()

Испайредтоаккаунт

bool IsPairedToAccount()

IsServiceProvisioned

bool IsServiceProvisioned()

StoreFabricId

WEAVE_ERROR StoreFabricId(
  uint64_t fabricId
)

МагазинПроизводительУстройствоСертификат

WEAVE_ERROR StoreManufacturerDeviceCertificate(
  const uint8_t *cert,
  size_t certLen
)

StoreManufacturerDeviceId

WEAVE_ERROR StoreManufacturerDeviceId(
  uint64_t deviceId
)

МагазинПроизводительУстройствоПромежуточныйCACerts

WEAVE_ERROR StoreManufacturerDeviceIntermediateCACerts(
  const uint8_t *certs,
  size_t certsLen
)

МагазинПроизводительУстройствоPrivateKey

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
)

StorePairingCode

WEAVE_ERROR StorePairingCode(
  const char *pairingCode,
  size_t pairingCodeLen
)

МагазинPrimary802154MACАдрес

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
)

StoreServiceConfig

l10n-заполнитель52

StoreServiceProvisioningData

l10n-заполнитель53

Защищенные функции

Диспетчер конфигурации

l10n-заполнитель54

Диспетчер конфигурации

l10n-заполнитель55

Диспетчер конфигурации

l10n-заполнитель56

оператор=

l10n-заполнитель57

~Менеджер конфигураций

l10n-заполнитель58