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

Usage of iot_button_register_cb() function in matter protocol #36159

Open
swang4415 opened this issue Oct 19, 2024 · 2 comments
Open

Usage of iot_button_register_cb() function in matter protocol #36159

swang4415 opened this issue Oct 19, 2024 · 2 comments
Labels
bug Something isn't working esp32

Comments

@swang4415
Copy link

Reproduction steps

I now need to define two buttons to send switch and dimming commands respectively, but I encountered some problems when registering the buttons. The log records are shown below:
截图 2024-10-19 14-16-27
My code is this
截图 2024-10-17 17-15-07
Whenever I burn code into esp32c3, it keeps restarting. I don't know what happened. I hope someone can help me solve it. Thanks!!

Bug prevalence

Once or twice a week

GitHub hash of the SDK that was being used

5.0.2

Platform

esp32

Platform Version(s)

No response

Type

Core SDK Crash

Anything else?

No response

@swang4415 swang4415 added bug Something isn't working needs triage labels Oct 19, 2024
@dhrishi
Copy link
Contributor

dhrishi commented Oct 25, 2024

@shubhamdp Please check

@shubhamdp
Copy link
Contributor

Below error shows up when handle is NULL (please see: https://github.com/espressif/esp-iot-solution/blob/master/components/button/iot_button.c#L535)

Pointer of handle is invalid

Can you please check the configured values for BSP_BUTTON_NUM, SWITCH_BUTTON_IDX, and DIMMABLE_BUTTON_IDX. Could be wrongly configured?

If possible can you please share the minimum reproducible code snippet so that I can give a try (please no screenshot of code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working esp32
Projects
None yet
Development

No branches or pull requests

4 participants