En Google, luchamos por la equidad racial de la comunidad negra. Más información

nl::Weave::DeviceLayer::Internal::GenericConfigurationManagerImpl

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

Proporciona una implementación genérica de las funciones de ConfigurationManager que funciona en varias plataformas.

Resumen

Esta plantilla contiene implementaciones de funciones seleccionadas de la interfaz abstracta ConfigurationManager que son adecuadas para usar en todas las plataformas. La clase ConfigurationManagerImpl, que también aparece como parámetro ImplClass de la plantilla, debe heredarla (de forma directa o indirecta).

Tipos protegidos

@404 enum

Atributos protegidos

mFlags
uint8_t

Funciones públicas

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

Funciones protegidas

LogDeviceConfig()
void
PersistProvisioningData(ProvisioningDataSet & provData)

Tipos protegidos

@404

 @404

Atributos protegidos

mFlags

uint8_t mFlags

Funciones públicas

_ClearServiceProvisioningData

WEAVE_ERROR _ClearServiceProvisioningData()

_ComputeHash

WEAVE_ERROR _ComputeProvisioningHash(
  uint8_t *hashBuf,
  size_t hashBufSize
)

_ConfigurarWeaveStack

WEAVE_ERROR _ConfigureWeaveStack()

_GetBLEDeviceIdentificationInfo

WEAVE_ERROR _GetBLEDeviceIdentificationInfo(
  Ble::WeaveBLEDeviceIdentificationInfo & deviceIdInfo
)

Obtener certificado

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

_GetDeviceDescriptor

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

_ObtenerDeviceDescriptorTLV

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

ID del dispositivo

WEAVE_ERROR _GetDeviceId(
  uint64_t & deviceId
)

_GetCAIntermediateCACerts

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

Obtener clave privada de dispositivo

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

_ObtenerFabricId

WEAVE_ERROR _GetFabricId(
  uint64_t & fabricId
)

_GetFailSafeArmed

WEAVE_ERROR _GetFailSafeArmed(
  bool & val
)

_Obtener firmwareBuildTime

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

_Obtener firmware de la revisión

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
)

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

_GetManufactureDate

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

ID de cuenta_vinculada

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

Obtener código de vinculación

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
)

_ObtenerProductId

WEAVE_ERROR _GetProductId(
  uint16_t & productId
)

Obtener revisión de productos

WEAVE_ERROR _GetProductRevision(
  uint16_t & productRev
)

Obtener string de código QR

WEAVE_ERROR _GetQRCodeString(
  char *buf,
  size_t bufSize
)

Obtener número de serie

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

_GetServiceConfig.

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

ID del servicio

WEAVE_ERROR _GetServiceId(
  uint64_t & serviceId
)

_GetVendorId

WEAVE_ERROR _GetVendorId(
  uint16_t & vendorId
)

_Obtener Wi-FiAPSSID

WEAVE_ERROR _GetWiFiAPSSID(
  char *buf,
  size_t bufSize
)

Init

WEAVE_ERROR _Init()

_Se aprovisionó por completo

bool _IsFullyProvisioned()

_IsMemberOfFabric

bool _IsMemberOfFabric()

_Está vinculado a una cuenta

bool _IsPairedToAccount()

_IsServiceAprovisionado

bool _IsServiceProvisioned()

_SetFailSafeArmed

WEAVE_ERROR _SetFailSafeArmed(
  bool val
)

ID de _StoreFabric

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
)

_StoreManufactureDate

WEAVE_ERROR _StoreManufacturingDate(
  const char *mfgDate,
  size_t mfgDateLen
)

ID de cuenta de tienda vinculada

WEAVE_ERROR _StorePairedAccountId(
  const char *accountId,
  size_t accountIdLen
)

Código de vinculación de tiendas

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
)

_StoreRevision deProducto

WEAVE_ERROR _StoreProductRevision(
  uint16_t productRev
)

_Número de serie de la tienda

WEAVE_ERROR _StoreSerialNumber(
  const char *serialNum,
  size_t serialNumLen
)

_Configuración del servicio de Store

WEAVE_ERROR _StoreServiceConfig(
  const uint8_t *serviceConfig,
  size_t serviceConfigLen
)

_AlmacenarServicioDeDatos

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

Funciones protegidas

LogDeviceConfig

void LogDeviceConfig()

PersistProvisioningData

WEAVE_ERROR PersistProvisioningData(
  ProvisioningDataSet & provData
)