class EnvironmentConfig

Defined at line 25 of file ../../src/connectivity/weave/adaptation/environment_config.h

Provides functions and definitions for accessing persisted device configuration

on platforms based on the Fuchsia SDK.

NOTE: This class is designed to be mixed-in to the concrete subclass of the

GenericConfigurationManagerImpl

<

> template. When used this way, the class

naturally provides implementations for the delegated members referenced by

the template class (e.g. the ReadConfigValue() method).

Public Members

static const char[] kConfigDataPath
static const char[] kDataPath
static const char[] kPackageDataPath
static const Key kConfigKey_SerialNum
static const Key kConfigKey_MfrDeviceId
static const Key kConfigKey_MfrDeviceCert
static const Key kConfigKey_MfrDeviceCertAllowLocal
static const Key kConfigKey_MfrDeviceICACerts
static const Key kConfigKey_MfrDevicePrivateKey
static const Key kConfigKey_ProductRevision
static const Key kConfigKey_ManufacturingDate
static const Key kConfigKey_PairingCode
static const Key kConfigKey_FabricId
static const Key kConfigKey_ServiceConfig
static const Key kConfigKey_PairedAccountId
static const Key kConfigKey_ServiceId
static const Key kConfigKey_FabricSecret
static const Key kConfigKey_GroupKeyIndex
static const Key kConfigKey_LastUsedEpochKeyId
static const Key kConfigKey_FailSafeArmed
static const Key kConfigKey_WiFiStationSecType
static const Key kConfigKey_OperationalDeviceId
static const Key kConfigKey_OperationalDeviceCert
static const Key kConfigKey_OperationalDeviceICACerts
static const Key kConfigKey_OperationalDevicePrivateKey

Public Methods

WEAVE_ERROR Init ()

Defined at line 51 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR ReadConfigValue (Key key, bool & val)

Configuration methods used by the GenericConfigurationManagerImpl

<

> template.

Defined at line 60 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR ReadConfigValue (Key key, uint32_t & val)

Defined at line 64 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR ReadConfigValue (Key key, uint64_t & val)

Defined at line 68 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR ReadConfigValueStr (Key key, char * buf, size_t bufSize, size_t & outLen)

Defined at line 72 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR ReadConfigValueBin (Key key, uint8_t * buf, size_t bufSize, size_t & outLen)

Defined at line 77 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR WriteConfigValue (Key key, bool val)

Defined at line 82 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR WriteConfigValue (Key key, uint32_t val)

Defined at line 86 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR WriteConfigValue (Key key, uint64_t val)

Defined at line 90 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR WriteConfigValueStr (Key key, const char * str)

Defined at line 94 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR WriteConfigValueStr (Key key, const char * str, size_t strLen)

Defined at line 98 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR WriteConfigValueBin (Key key, const uint8_t * data, size_t dataLen)

Defined at line 102 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR ClearConfigValue (Key key)

Defined at line 106 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

bool ConfigValueExists (Key key)

Defined at line 110 of file ../../src/connectivity/weave/adaptation/environment_config.cpp

WEAVE_ERROR FactoryResetConfig ()

Defined at line 114 of file ../../src/connectivity/weave/adaptation/environment_config.cpp