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 63ad8b6dee
commit a68931cd9d
9 changed files with 72 additions and 51 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