Usage of iot_button_register_cb() function in matter protocol

shuaiwang
Posts: 1
Joined: Fri Oct 18, 2024 8:14 am

Usage of iot_button_register_cb() function in matter protocol

Postby shuaiwang » Sat Oct 19, 2024 6:18 am

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.png
截图 2024-10-19 14-16-27.png (135.36 KiB) Viewed 795 times
My code is this:
截图 2024-10-17 17-15-07.png
截图 2024-10-17 17-15-07.png (93.99 KiB) Viewed 795 times
Whenever I burn code into esp32c3, it keeps restarting. I don't know what happened. I hope someone can help me solve it. Thanks!!

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Usage of iot_button_register_cb() function in matter protocol

Postby ESP_Sprite » Sat Oct 19, 2024 8:55 am

You're using a BSP, but for what board? Does it actually have two buttons?

Who is online

Users browsing this forum: Baidu [Spider], YaCy [Bot] and 126 guests