Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] bug in the SubscribeEvent function in CHIPCluster.h #22467

Closed
spalas1996 opened this issue Sep 7, 2022 · 0 comments · Fixed by #22434
Closed

[BUG] bug in the SubscribeEvent function in CHIPCluster.h #22467

spalas1996 opened this issue Sep 7, 2022 · 0 comments · Fixed by #22434

Comments

@spalas1996
Copy link
Contributor

Reproduction steps

Reproduction steps
1. Compile matter SDK while trying to call subscribevent function

There is a bug in the SubscribeEvent function in CHIPCluster.h: https://github.com/project-chip/connectedhomeip/blob/342ba68745610b4bee23112ac56e0681d3e72067/src/controller/CHIPCluster.h#L348
While trying to use this function I get the following compilation error:
vendor/csa-iot/connectedhomeip/src/controller/CHIPCluster.h:384:16: error: no matching function for call to 'SubscribeEvent'
        return Controller::SubscribeEvent<DecodableType>(&mExchangeManager, mSession.Get().Value(), mEndpoint, onReportCb,
By changing this line of code https://github.com/project-chip/connectedhomeip/blob/342ba68745610b4bee23112ac56e0681d3e72067/src/controller/CHIPCluster.h#L369
to
auto onSubscriptionEstablishedCb = [context, subscriptionEstablishedCb](const app::ReadClient & readClient)
compilation is successful

Bug prevalence

everytime

GitHub hash of the SDK that was being used

b4505ac

Platform

ameba, android, cc13x2_cc26x2, darwin, efr32, esp32, freeRTOS, IMX8, k32w, nrf, python, raspi, vscode, windows

Platform Version(s)

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant