components/esp-matter: Fix the set_val call and add RAII lock.

This commit is contained in:
Rohit
2025-12-17 12:05:07 +05:30
parent 46d1af520f
commit ba887f9f6a
10 changed files with 73 additions and 57 deletions
+2 -3
View File
@@ -232,13 +232,12 @@ operations using the server's object, such as opening or closing the commissioni
To address this, there are two possible approaches:
- Locking the Matter thread
- Using ScopedChipStackLock to lock the Matter thread
::
lock::chip_stack_lock(portMAX_DELAY);
lock::ScopedChipStackLock lock(portMAX_DELAY);
... // eg: access Matter attribute, open/close commissioning window.
lock::chip_stack_unlock();
- Scheduling the work on Matter thread