ESPCDFNodeConfig
ESPCDFNodeConfig is a read-only configuration snapshot attached to ESPCDFNode. Use it when you need firmware version, node info, or static attributes from the last config fetch — not for live param control.
There is no operations object or operation event bus on this type. Device and service entities under node.devices / node.services handle runtime control.
Properties
| Property | Type | Description |
|---|---|---|
configVersion | string | Config schema version |
info | optional | Firmware/model metadata |
attributes | optional | Static attribute list |
ESPCDFNode wraps plain config data in new ESPCDFNodeConfig(...) at construction time.
Common Workflows
Read config from a node
import { initCDF } from "@espressif/rainmaker-base-cdf";
const espCDF = await initCDF({ sdkAdaptorRegistry });
const node = espCDF.nodeStore.getNodeById("node-id");
const config = node?.nodeConfig;
if (config) {
console.log(config.configVersion);
console.log(config.info?.fwVersion, config.info?.model);
}
Use attributes
for (const attr of config?.attributes ?? []) {
console.log(attr.name, attr.value);
}
For live param values, read node.devices[].params[].value instead of config alone.
Related Resource
- ESPCDFNode
- ESPCDFDevice
- ESPCDFNodeConfig source
- API Reference: