Namespace chip.configuration
The namespace for the CHIP API's configuration contract, which allows
you to read configuration parameters.
Defined in: configuration.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
chip.configuration.getParameterValueAsString(sParameterName)
Returns the value of the configuration parameter with the given name as a
string.
|
Method Detail
<static>
{string}
chip.configuration.getParameterValueAsString(sParameterName)
Returns the value of the configuration parameter with the given name as a
string.
Note: Use
JSON.parse(sParameterValue) for values which represent
objects or arrays, use parseInt(sParameterValue, 10) for values
which represent integers, etc.
- Parameters:
- {string} sParameterName
- the parameter's name
- Since:
- 1.2.0
- Returns:
- {string} the parameter's value