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 :: Nội bộ :: GenericConfigurationManagerImpl

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

Cung cấp triển khai chung các tính năng ConfigurationManager hoạt động trên nhiều nền tảng.

Tóm lược

Mẫu này chứa các triển khai các tính năng được chọn từ giao diện trừu tượng ConfigurationManager phù hợp để sử dụng trên tất cả các nền tảng. Nó dự định sẽ được kế thừa (trực tiếp hoặc gián tiếp) bởi lớp ConfigurationManagerImpl , lớp này cũng xuất hiện dưới dạng tham số ImplClass của mẫu.

Các loại được bảo vệ

@404 enum

Thuộc tính được bảo vệ

mFlags
uint8_t

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

_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)

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

LogDeviceConfig ()
void
PersistProvisioningData (ProvisioningDataSet & provData)

Các loại được bảo vệ

@ 404

 @404

Thuộc tính được bảo vệ

mFlags

uint8_t mFlags

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

_ClearServiceProvisratingData

WEAVE_ERROR _ClearServiceProvisioningData()

_ComputeProvisratingHash

WEAVE_ERROR _ComputeProvisioningHash(
  uint8_t *hashBuf,
  size_t hashBufSize
)

_ConfigureWeaveStack

WEAVE_ERROR _ConfigureWeaveStack()

_GetBLEDeviceIdentificationInfo

WEAVE_ERROR _GetBLEDeviceIdentificationInfo(
  Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo
)

_GetDeviceCertificate

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

_GetDeviceDescriptor

WEAVE_ERROR _GetDeviceDescriptor(
  ::nl::Weave::Profiles::DeviceDescription::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
)

_GetFainstId

WEAVE_ERROR _GetFabricId(
  uint64_t & fabricId
)

_GetFailSafeArmed

WEAVE_ERROR _GetFailSafeArmed(
  bool & val
)

_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 ProductionDate

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
)

_GetProductRevision

WEAVE_ERROR _GetProductRevision(
  uint16_t & productRev
)

_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
)

_GetWiFiAPSSID

WEAVE_ERROR _GetWiFiAPSSID(
  char *buf,
  size_t bufSize
)

_Trong đó

WEAVE_ERROR _Init()

_IsFullyProvisoned

bool _IsFullyProvisioned()

_IsMemberOfF Fabric

bool _IsMemberOfFabric()

_IsPairsToAccount

bool _IsPairedToAccount()

_IsServiceProvisoned

bool _IsServiceProvisioned()

_SetFailSafeArmed

WEAVE_ERROR _SetFailSafeArmed(
  bool val
)

_StoreFainstId

WEAVE_ERROR _StoreFabricId(
  uint64_t fabricId
)

_StoreMan ProducurerDeviceCertificate

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
)

_StoreMan ProductionDate

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ệ

LogDeviceConfig

void LogDeviceConfig()

PersistProvisratingData

WEAVE_ERROR PersistProvisioningData(
  ProvisioningDataSet & provData
)