Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "thermostat-server-presets.h"
#include "thermostat-server.h"

#include <app/reporting/reporting.h>
#include <platform/internal/CHIPDeviceLayerInternal.h>

using namespace chip;
Expand Down Expand Up @@ -316,6 +317,10 @@ Status ThermostatAttrAccess::SetActivePreset(EndpointId endpoint, DataModel::Nul
return StatusIB(err).mStatus;
}

// Notify subscribers that ActivePresetHandle has changed so that they
// receive a subscription report with the new value.
MatterReportingAttributeChangeCallback(endpoint, Thermostat::Id, ActivePresetHandle::Id);

return Status::Success;
}

Expand Down
Loading