Skip to content

smart-light example error: value of type 'esp_matter.cluster.level_control.config_t' (aka 'esp_matter.cluster.level_control.config') has no member 'lighting' #47

Description

@JetForMe

It’s important to keep the samples up-to-date.

Trying to build the smart-light example with esp-idf 5.4.1 and esp-matter 1.4, I get these errors. led-blink builds fine.

 191 | typedef struct {
/Users/rmann/Projects/Personal/ESP32-C6/swift-matter-examples/smart-light/Matter/Matter.swift:143:33: error: value of type 'esp_matter.cluster.level_control.config_t' (aka 'esp_matter.cluster.level_control.config') has no member 'lighting'
141 |       lightConfig.on_off.on_off = true
142 |       lightConfig.level_control.current_level = .init(64)
143 |       lightConfig.level_control.lighting.start_up_current_level = .init(64)
    |                                 `- error: value of type 'esp_matter.cluster.level_control.config_t' (aka 'esp_matter.cluster.level_control.config') has no member 'lighting'
144 |       lightConfig.color_control.color_mode =
145 |         chip.app.Clusters.ColorControl.ColorMode.colorTemperature.rawValue

/Users/rmann/Projects/Personal/ESP32-C6/swift-matter-examples/smart-light/Matter/Matter.swift:143:68: error: cannot infer contextual base in reference to member 'init'
141 |       lightConfig.on_off.on_off = true
142 |       lightConfig.level_control.current_level = .init(64)
143 |       lightConfig.level_control.lighting.start_up_current_level = .init(64)
    |                                                                    `- error: cannot infer contextual base in reference to member 'init'
144 |       lightConfig.color_control.color_mode =
145 |         chip.app.Clusters.ColorControl.ColorMode.colorTemperature.rawValue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions