Commit b9ee16d
committed
fix(thermostat-server): notify subscribers when ActivePresetHandle changes
SetActivePreset() was calling delegate->SetActivePresetHandle() without
notifying the reporting engine, so active subscriptions never received
a Report Data message after a SetActivePresetRequest command. The new
value was silently applied on the device side (confirmed via a direct
read) but was invisible to subscribed controllers.
Add a call to MatterReportingAttributeChangeCallback() after a
successful SetActivePresetHandle() to mark the attribute dirty and
trigger a subscription report to all subscribers.1 parent 704d97f commit b9ee16d
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
319 | 324 | | |
320 | 325 | | |
321 | 326 | | |
| |||
0 commit comments