Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.
Trang này được dịch bởi Cloud Translation API.
Switch to English

nl :: Dệt :: DeviceLayer :: Quản lý cấu hình

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

Cung cấp quyền truy cập vào thông tin cấu hình thời gian chạy và thời gian xây dựng cho thiết bị Weave.

Tóm lược

Di sản

Các lớp con đã biết trực tiếp:
  nl :: Weave :: DeviceLayer :: ConfigurationManagerImpl
  nl :: Weave :: DeviceLayer :: ConfigurationManagerImpl
  nl :: Weave :: DeviceLayer :: ConfigurationManagerImpl

Các loại công khai

@388 enum

Lớp học bạn bè

::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

Chức năng công cộng

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 sản phẩm thiết bị do nhà cung cấp chỉ định.
GetProductRevision (uint16_t & productRev)
Số sửa đổi sản phẩm do nhà cung cấp chỉ định.
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 của nhà cung cấp đã sản xuất thiết bị.
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)

Các chức năng được bảo vệ

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

Các loại công khai

@ 388

 @388

Lớp học bạn bè

:: 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

Chức năng công cộng

ClearServiceProvisratingData

WEAVE_ERROR ClearServiceProvisioningData()

ComputeProvisratingHash

WEAVE_ERROR ComputeProvisioningHash(
  uint8_t *hashBuf,
  size_t hashBufSize
)

GetBLEDeviceIdentificationInfo

WEAVE_ERROR GetBLEDeviceIdentificationInfo(
  Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo
)

GetDeviceCertificate

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
)

GetDeviceInter InstantCACerts

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

GetDevicePrivateKey

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

GetFnaiId

WEAVE_ERROR GetFabricId(
  uint64_t & fabricId
)

GetFirmwareBuildTime

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

GetFirmwareRevision

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

GetMan ProducurerDeviceCertificate

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

GetMan ProducurerDeviceId

WEAVE_ERROR GetManufacturerDeviceId(
  uint64_t & deviceId
)

GetMan ProducurerDeviceInter InstantCACerts

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

GetMan ProducurerDevicePrivateKey

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

GetMan productionuringDate

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

GetPairsAccountId

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

GetPairingCode

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
)

Id sản phẩm thiết bị do nhà cung cấp chỉ định.

GetProductRevision

WEAVE_ERROR GetProductRevision(
  uint16_t & productRev
)

Số sửa đổi sản phẩm do nhà cung cấp chỉ định.

GetQRCodeString

WEAVE_ERROR GetQRCodeString(
  char *buf,
  size_t bufSize
)

GetSerialNumber

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

GetServiceConfig

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

GetServiceId

WEAVE_ERROR GetServiceId(
  uint64_t & serviceId
)

GetVendorId

WEAVE_ERROR GetVendorId(
  uint16_t & vendorId
)

Id của nhà cung cấp đã sản xuất thiết bị.

GetWiFiAPSSID

WEAVE_ERROR GetWiFiAPSSID(
  char *buf,
  size_t bufSize
)

InitiateFactoryReset

void InitiateFactoryReset()

IsFullyProvisoned

bool IsFullyProvisioned()

IsMemberOfF Fabric

bool IsMemberOfFabric()

IsPairsToAccount

bool IsPairedToAccount()

IsServiceProvisoned

bool IsServiceProvisioned()

StoreFouldId

WEAVE_ERROR StoreFabricId(
  uint64_t fabricId
)

Cửa hàngHãng sản xuấtDeviceCertificate

WEAVE_ERROR StoreManufacturerDeviceCertificate(
  const uint8_t *cert,
  size_t certLen
)

StoreMan ProducurerDeviceId

WEAVE_ERROR StoreManufacturerDeviceId(
  uint64_t deviceId
)

StoreMan ProducurerDeviceInter InstantCACerts

WEAVE_ERROR StoreManufacturerDeviceIntermediateCACerts(
  const uint8_t *certs,
  size_t certsLen
)

StoreMan ProducurerDevicePrivateKey

WEAVE_ERROR StoreManufacturerDevicePrivateKey(
  const uint8_t *key,
  size_t keyLen
)

Cửa hàng

WEAVE_ERROR StoreManufacturingDate(
  const char *mfgDate,
  size_t mfgDateLen
)

StorePairsAccountId

WEAVE_ERROR StorePairedAccountId(
  const char *accountId,
  size_t accountIdLen
)

StorePairingCode

WEAVE_ERROR StorePairingCode(
  const char *pairingCode,
  size_t pairingCodeLen
)

StorePrimary802154MACAddress

WEAVE_ERROR StorePrimary802154MACAddress(
  const uint8_t *buf
)

StorePrimaryWiFiMACAddress

WEAVE_ERROR StorePrimaryWiFiMACAddress(
  const uint8_t *buf
)

StoreProductRevision

WEAVE_ERROR StoreProductRevision(
  uint16_t productRev
)

StoreSerialNumber

WEAVE_ERROR StoreSerialNumber(
  const char *serialNum,
  size_t serialNumLen
)

StoreServiceConfig

WEAVE_ERROR StoreServiceConfig(
  const uint8_t *serviceConfig,
  size_t serviceConfigLen
)

StoreServiceProvisratingData

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

Các chức năng được bảo vệ

Quản lý cấu hình

 ConfigurationManager()=default

Quản lý cấu hình

 ConfigurationManager(
  const ConfigurationManager &
)=delete

Quản lý cấu hình

 ConfigurationManager(
  const ConfigurationManager &&
)=delete

toán tử =

ConfigurationManager & operator=(
  const ConfigurationManager &
)=delete

~ ConfigurationManager

 ~ConfigurationManager()=default