Skip to content

Commit be3c70a

Browse files
mkardous-silabsjamesharrowlpbeliveau-silabsfbhaiyat-silabs
authored
[Silabs] Fix silabs energy mangement app (#35658)
* Fix BUILD.gn which was broken in moving files around in energy management app. * Added BUILD.gn arguments to enable different feature support. Updated README. Added test event triggers. * Removed blank lines * Added test event triggers * [Silabs] Fix silabs energy mangement app * Fix gn conditional inclusions * Fix GN conflict --------- Co-authored-by: James Harrow <james.harrow@gmail.com> Co-authored-by: lpbeliveau-silabs <louis-philip.beliveau@silabs.com> Co-authored-by: Faisal Bhaiyat <faisal.bhaiyat@silabs.com>
1 parent 7b8467b commit be3c70a

File tree

10 files changed

+203
-38
lines changed

10 files changed

+203
-38
lines changed

examples/energy-management-app/silabs/BUILD.gn

+54-18
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ import("${examples_common_plat_dir}/args.gni")
4747
declare_args() {
4848
# Dump memory usage at link time.
4949
chip_print_memory_usage = false
50+
51+
# Enable test event triggers by default: Disable these in production devices
52+
sl_enable_energy_evse_trigger = true
53+
sl_enable_energy_reporting_trigger = true
54+
sl_enable_water_heater_management_trigger = true
55+
sl_enable_device_energy_management_trigger = true
56+
57+
# Device Energy Management feature support - only one of these can be true
58+
# or both can be disabled if forecasting is not supported
59+
sl_dem_support_power_forecast_reporting = true
60+
sl_dem_support_state_forecast_reporting = false
61+
62+
# Only one of these examples should be enabled
63+
sl_enable_example_evse_device = true
64+
sl_enable_example_water_heater_device = false
5065
}
5166

5267
if (slc_generate) {
@@ -101,7 +116,11 @@ if (wifi_soc) {
101116
"${examples_plat_dir}",
102117
"${chip_root}/src/lib",
103118
"${examples_common_plat_dir}",
104-
"../energy-management-common/include",
119+
"${chip_root}/examples/energy-management-app/energy-management-common/common/include",
120+
"${chip_root}/examples/energy-management-app/energy-management-common/device-energy-management/include",
121+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/include",
122+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-reporting/include",
123+
"${chip_root}/examples/energy-management-app/energy-management-common/water-heater/include",
105124
]
106125

107126
if (use_wf200) {
@@ -131,28 +150,45 @@ silabs_executable("energy-management-app") {
131150
include_dirs = [ "include" ]
132151
defines = []
133152

153+
defines += [
154+
"SL_MATTER_CONFIG_ENABLE_ENERGY_EVSE_TRIGGER=${sl_enable_energy_evse_trigger}",
155+
"SL_MATTER_CONFIG_ENABLE_ENERGY_REPORTING_TRIGGER=${sl_enable_energy_reporting_trigger}",
156+
"SL_MATTER_CONFIG_ENABLE_WATER_HEATER_MANAGEMENT_TRIGGER=${sl_enable_water_heater_management_trigger}",
157+
"SL_MATTER_CONFIG_ENABLE_DEVICE_ENERGY_MANAGEMENT_TRIGGER=${sl_enable_device_energy_management_trigger}",
158+
"SL_MATTER_CONFIG_DEM_SUPPORT_POWER_FORECAST_REPORTING=${sl_dem_support_power_forecast_reporting}",
159+
"SL_MATTER_CONFIG_DEM_SUPPORT_STATE_FORECAST_REPORTING=${sl_dem_support_state_forecast_reporting}",
160+
"SL_MATTER_CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE=${sl_enable_example_evse_device}",
161+
"SL_CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE=${sl_enable_example_water_heater_device}",
162+
]
163+
134164
if (silabs_board == "BRD2704A") {
135165
defines += [ "SL_STATUS_LED=0" ]
136166
}
137167

138168
sources = [
139-
"${chip_root}/examples/energy-management-app/energy-management-common/src/ChargingTargetsMemMgr.cpp",
140-
"${chip_root}/examples/energy-management-app/energy-management-common/src/DEMTestEventTriggers.cpp",
141-
"${chip_root}/examples/energy-management-app/energy-management-common/src/DeviceEnergyManagementDelegateImpl.cpp",
142-
"${chip_root}/examples/energy-management-app/energy-management-common/src/DeviceEnergyManagementManager.cpp",
143-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EVSEManufacturerImpl.cpp",
144-
"${chip_root}/examples/energy-management-app/energy-management-common/src/ElectricalPowerMeasurementDelegate.cpp",
145-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EnergyEvseDelegateImpl.cpp",
146-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EnergyEvseEventTriggers.cpp",
147-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EnergyEvseMain.cpp",
148-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EnergyEvseManager.cpp",
149-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EnergyEvseTargetsStore.cpp",
150-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EnergyReportingEventTriggers.cpp",
151-
"${chip_root}/examples/energy-management-app/energy-management-common/src/EnergyTimeUtils.cpp",
152-
"${chip_root}/examples/energy-management-app/energy-management-common/src/FakeReadings.cpp",
153-
"${chip_root}/examples/energy-management-app/energy-management-common/src/PowerTopologyDelegate.cpp",
154-
"${chip_root}/examples/energy-management-app/energy-management-common/src/device-energy-management-mode.cpp",
155-
"${chip_root}/examples/energy-management-app/energy-management-common/src/energy-evse-mode.cpp",
169+
"${chip_root}/examples/energy-management-app/energy-management-common/common/src/EnergyTimeUtils.cpp",
170+
"${chip_root}/examples/energy-management-app/energy-management-common/device-energy-management/src/DEMTestEventTriggers.cpp",
171+
"${chip_root}/examples/energy-management-app/energy-management-common/device-energy-management/src/DeviceEnergyManagementDelegateImpl.cpp",
172+
"${chip_root}/examples/energy-management-app/energy-management-common/device-energy-management/src/DeviceEnergyManagementManager.cpp",
173+
"${chip_root}/examples/energy-management-app/energy-management-common/device-energy-management/src/device-energy-management-mode.cpp",
174+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/ChargingTargetsMemMgr.cpp",
175+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/EVSEManufacturerImpl.cpp",
176+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/EnergyEvseDelegateImpl.cpp",
177+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/EnergyEvseEventTriggers.cpp",
178+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/EnergyEvseMain.cpp",
179+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/EnergyEvseManager.cpp",
180+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/EnergyEvseTargetsStore.cpp",
181+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-evse/src/energy-evse-mode.cpp",
182+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-reporting/src/ElectricalPowerMeasurementDelegate.cpp",
183+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-reporting/src/EnergyReportingEventTriggers.cpp",
184+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-reporting/src/FakeReadings.cpp",
185+
"${chip_root}/examples/energy-management-app/energy-management-common/energy-reporting/src/PowerTopologyDelegate.cpp",
186+
"${chip_root}/examples/energy-management-app/energy-management-common/water-heater/src/WaterHeaterMain.cpp",
187+
"${chip_root}/examples/energy-management-app/energy-management-common/water-heater/src/WhmDelegateImpl.cpp",
188+
"${chip_root}/examples/energy-management-app/energy-management-common/water-heater/src/WhmInstance.cpp",
189+
"${chip_root}/examples/energy-management-app/energy-management-common/water-heater/src/WhmMain.cpp",
190+
"${chip_root}/examples/energy-management-app/energy-management-common/water-heater/src/WhmManufacturer.cpp",
191+
"${chip_root}/examples/energy-management-app/energy-management-common/water-heater/src/water-heater-mode.cpp",
156192
"${examples_common_plat_dir}/main.cpp",
157193
"src/AppTask.cpp",
158194
]

examples/energy-management-app/silabs/README.md

+21-5
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ An example showing the use of CHIP on the Silicon Labs EFR32 MG12 and MG24.
3333
## Introduction
3434

3535
The EFR32 Energy Management example provides a baseline demonstration of a EVSE
36-
device, built using Matter and the Silicon Labs gecko SDK. It can be controlled
37-
by a Chip controller over an Openthread or Wifi network..
36+
or Water Heater device, built using Matter and the Silicon Labs gecko SDK. It
37+
can be controlled by a Chip controller over an Openthread or Wifi network.
3838

3939
The EFR32 device can be commissioned over Bluetooth Low Energy where the device
4040
and the Chip controller will exchange security information with the Rendez-vous
@@ -45,9 +45,9 @@ If the LCD is enabled, the LCD on the Silabs WSTK shows a QR Code containing the
4545
needed commissioning information for the BLE connection and starting the
4646
Rendez-vous procedure.
4747

48-
The EVSE example is intended to serve both as a means to explore the workings of
49-
Matter as well as a template for creating real products based on the Silicon
50-
Labs platform.
48+
The EVSE and Water Heater examples are intended to serve both as a means to
49+
explore the workings of Matter Energy Management as well as a template for
50+
creating real products based on the Silicon Labs platform.
5151

5252
## Building
5353

@@ -99,9 +99,25 @@ Labs platform.
9999
$ git submodule update --init
100100
$ source third_party/connectedhomeip/scripts/activate.sh
101101
$ export SILABS_BOARD=BRD4187C
102+
103+
To build the EVSE example
104+
102105
$ gn gen out/debug
103106
$ ninja -C out/debug
104107

108+
To build the Water Heater example you can change the args to gn gen (see
109+
BUILD.gn for arg options)
110+
111+
$ gn gen out/debug --args='chip_enable_example_evse_device=false chip_enable_example_water_heater_device=true'
112+
$ ninja -C out/debug
113+
114+
To change Device Energy Management feature support (e.g. Power forecast or
115+
State forecast reporting), you can change the args to gn gen (see BUILD.gn
116+
for arg options)
117+
118+
$ gn gen out/debug --args='chip_dem_support_state_forecast_reporting=true chip_dem_support_power_forecast_reporting=false'
119+
$ ninja -C out/debug
120+
105121
- To delete generated executable, libraries and object files use:
106122

107123
$ cd ~/connectedhomeip/examples/energy-management-app/silabs

examples/energy-management-app/silabs/build_for_wifi_args.gni

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ silabs_sdk_target = get_label_info(":sdk", "label_no_toolchain")
1818
chip_enable_openthread = false
1919
import("${chip_root}/src/platform/silabs/wifi_args.gni")
2020

21+
sl_enable_test_event_trigger = true
2122
chip_enable_ota_requestor = false
2223
disable_lcd = true
2324
app_data_model =

examples/energy-management-app/silabs/include/AppTask.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include "AppEvent.h"
3030
#include "BaseApplication.h"
31-
#include "EnergyEvseManager.h"
31+
3232
#include "FreeRTOS.h"
3333
#include "timers.h" // provides FreeRTOS timer support
3434
#include <ble/BLEEndPoint.h>
@@ -80,7 +80,7 @@ class AppTask : public BaseApplication
8080

8181
private:
8282
static AppTask sAppTask;
83-
static void EvseActionEventHandler(AppEvent * aEvent);
83+
static void EnergyManagementActionEventHandler(AppEvent * aEvent);
8484

8585
static void UpdateClusterState(intptr_t context);
8686

examples/energy-management-app/silabs/openthread.gni

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ app_data_model =
2323
chip_enable_ota_requestor = false
2424
chip_enable_openthread = true
2525
disable_lcd = true
26+
sl_enable_test_event_trigger = true
2627

2728
openthread_external_platform =
2829
"${chip_root}/third_party/openthread/platforms/efr32:libopenthread-efr32"

examples/energy-management-app/silabs/src/AppTask.cpp

+109-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
#include "AppConfig.h"
2222
#include "AppEvent.h"
2323
#include "LEDWidget.h"
24+
#if SL_MATTER_CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE
2425
#include <EnergyEvseMain.h>
26+
#endif
27+
#if SL_CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
28+
#include <WaterHeaterMain.h>
29+
#endif
2530
#include <app-common/zap-generated/cluster-enums.h>
2631
#include <app-common/zap-generated/cluster-objects.h>
2732
#include <app-common/zap-generated/ids/Attributes.h>
@@ -43,6 +48,24 @@
4348

4449
#include <platform/CHIPDeviceLayer.h>
4550

51+
#ifdef SL_MATTER_TEST_EVENT_TRIGGER_ENABLED
52+
#include <app/TestEventTriggerDelegate.h>
53+
54+
#if SL_MATTER_CONFIG_ENABLE_ENERGY_EVSE_TRIGGER
55+
#include <app/clusters/energy-evse-server/EnergyEvseTestEventTriggerHandler.h>
56+
#endif
57+
#if SL_MATTER_CONFIG_ENABLE_ENERGY_REPORTING_TRIGGER
58+
#include <app/clusters/electrical-energy-measurement-server/EnergyReportingTestEventTriggerHandler.h>
59+
#endif
60+
#if SL_MATTER_CONFIG_ENABLE_WATER_HEATER_MANAGEMENT_TRIGGER
61+
#include <app/clusters/water-heater-management-server/WaterHeaterManagementTestEventTriggerHandler.h>
62+
#endif
63+
#if SL_MATTER_CONFIG_ENABLE_DEVICE_ENERGY_MANAGEMENT_TRIGGER
64+
#include <app/clusters/device-energy-management-server/DeviceEnergyManagementTestEventTriggerHandler.h>
65+
#endif
66+
67+
#endif // SL_MATTER_TEST_EVENT_TRIGGER_ENABLED
68+
4669
#if (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917))
4770
#define EVSE_LED 1
4871
#else
@@ -53,28 +76,47 @@
5376
#define APP_EVSE_SWITCH 1
5477

5578
namespace {
56-
LEDWidget sEvseLED;
79+
LEDWidget sEnergyManagementLED;
5780
}
5881

5982
using namespace chip;
6083
using namespace chip::app;
6184
using namespace chip::app::Clusters;
6285
using namespace chip::app::Clusters::DeviceEnergyManagement;
6386
using namespace chip::app::Clusters::DeviceEnergyManagement::Attributes;
87+
using namespace chip::app::Clusters::WaterHeaterManagement;
6488
using namespace ::chip::DeviceLayer;
6589
using namespace ::chip::DeviceLayer::Silabs;
6690
using namespace ::chip::DeviceLayer::Internal;
6791
using namespace chip::TLV;
6892

93+
#ifdef SL_MATTER_TEST_EVENT_TRIGGER_ENABLED
94+
static EnergyEvseTestEventTriggerHandler sEnergyEvseTestEventTriggerHandler;
95+
static EnergyReportingTestEventTriggerHandler sEnergyReportingTestEventTriggerHandler;
96+
static DeviceEnergyManagementTestEventTriggerHandler sDeviceEnergyManagementTestEventTriggerHandler;
97+
#endif
98+
6999
namespace chip {
70100
namespace app {
71101
namespace Clusters {
72102
namespace DeviceEnergyManagement {
73103

74104
// Keep track of the parsed featureMap option
105+
#if (SL_MATTER_CONFIG_DEM_SUPPORT_POWER_FORECAST_REPORTING) && (SL_MATTER_CONFIG_DEM_SUPPORT_STATE_FORECAST_REPORTING)
106+
#error Cannot define SL_MATTER_CONFIG_DEM_SUPPORT_POWER_FORECAST_REPORTING and SL_MATTER_CONFIG_DEM_SUPPORT_STATE_FORECAST_REPORTING
107+
#endif
108+
109+
#if SL_MATTER_CONFIG_DEM_SUPPORT_POWER_FORECAST_REPORTING
75110
static chip::BitMask<Feature> sFeatureMap(Feature::kPowerAdjustment, Feature::kPowerForecastReporting,
76-
Feature::kStateForecastReporting, Feature::kStartTimeAdjustment, Feature::kPausable,
77-
Feature::kForecastAdjustment, Feature::kConstraintBasedAdjustment);
111+
Feature::kStartTimeAdjustment, Feature::kPausable, Feature::kForecastAdjustment,
112+
Feature::kConstraintBasedAdjustment);
113+
#elif SL_MATTER_CONFIG_DEM_SUPPORT_STATE_FORECAST_REPORTING
114+
static chip::BitMask<Feature> sFeatureMap(Feature::kPowerAdjustment, Feature::kStateForecastReporting,
115+
Feature::kStartTimeAdjustment, Feature::kPausable, Feature::kForecastAdjustment,
116+
Feature::kConstraintBasedAdjustment);
117+
#else
118+
static chip::BitMask<Feature> sFeatureMap(Feature::kPowerAdjustment);
119+
#endif
78120

79121
chip::BitMask<Feature> GetFeatureMapFromCmdLine()
80122
{
@@ -91,14 +133,33 @@ AppTask AppTask::sAppTask;
91133
void ApplicationInit()
92134
{
93135
chip::DeviceLayer::PlatformMgr().LockChipStack();
136+
SILABS_LOG("==================================================");
137+
#if SL_MATTER_CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE
138+
SILABS_LOG("energy-management-example EVSE starting. featureMap 0x%08lx", DeviceEnergyManagement::sFeatureMap.Raw());
139+
94140
EvseApplicationInit();
95-
sEvseLED.Init(EVSE_LED);
141+
#endif // CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE
142+
143+
#if SL_CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
144+
SILABS_LOG("energy-management-example WaterHeater starting. featureMap 0x%08lx", DeviceEnergyManagement::sFeatureMap.Raw());
145+
146+
FullWhmApplicationInit();
147+
#endif // CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
148+
SILABS_LOG("==================================================");
149+
150+
sEnergyManagementLED.Init(EVSE_LED);
96151
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
97152
}
98153
void ApplicationShutdown()
99154
{
100155
chip::DeviceLayer::PlatformMgr().LockChipStack();
156+
#if SL_MATTER_CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE
101157
EvseApplicationShutdown();
158+
#endif // CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE
159+
160+
#if SL_CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
161+
FullWhmApplicationShutdown();
162+
#endif // CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
102163
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
103164
}
104165

@@ -108,7 +169,11 @@ CHIP_ERROR AppTask::Init()
108169
chip::DeviceLayer::Silabs::GetPlatform().SetButtonsCb(AppTask::ButtonEventHandler);
109170

110171
#ifdef DISPLAY_ENABLED
111-
GetLCD().Init((uint8_t *) "energy-management-App");
172+
#if SL_MATTER_CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE
173+
GetLCD().Init((uint8_t *) "energy-management-App (EVSE)");
174+
#elif SL_CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
175+
GetLCD().Init((uint8_t *) "energy-management-App (WaterHeater)");
176+
#endif
112177
#endif
113178

114179
err = BaseApplication::Init();
@@ -120,6 +185,43 @@ CHIP_ERROR AppTask::Init()
120185

121186
ApplicationInit();
122187

188+
#ifdef SL_MATTER_TEST_EVENT_TRIGGER_ENABLED
189+
TestEventTriggerDelegate * pTestEventDelegate = Server::GetInstance().GetTestEventTriggerDelegate();
190+
191+
#if SL_MATTER_CONFIG_ENABLE_ENERGY_EVSE_TRIGGER
192+
static EnergyEvseTestEventTriggerHandler sEnergyEvseTestEventTriggerHandler;
193+
if (pTestEventDelegate != nullptr)
194+
{
195+
VerifyOrDie(pTestEventDelegate->AddHandler(&sEnergyEvseTestEventTriggerHandler) == CHIP_NO_ERROR);
196+
}
197+
#endif
198+
199+
#if SL_MATTER_CONFIG_ENABLE_ENERGY_REPORTING_TRIGGER
200+
static EnergyReportingTestEventTriggerHandler sEnergyReportingTestEventTriggerHandler;
201+
if (pTestEventDelegate != nullptr)
202+
{
203+
VerifyOrDie(pTestEventDelegate->AddHandler(&sEnergyReportingTestEventTriggerHandler) == CHIP_NO_ERROR);
204+
}
205+
206+
#endif
207+
#if SL_MATTER_CONFIG_ENABLE_WATER_HEATER_MANAGEMENT_TRIGGER
208+
static WaterHeaterManagementTestEventTriggerHandler sWaterHeaterManagementTestEventTriggerHandler;
209+
210+
if (pTestEventDelegate != nullptr)
211+
{
212+
VerifyOrDie(pTestEventDelegate->AddHandler(&sWaterHeaterManagementTestEventTriggerHandler) == CHIP_NO_ERROR);
213+
}
214+
#endif
215+
#if SL_MATTER_CONFIG_ENABLE_DEVICE_ENERGY_MANAGEMENT_TRIGGER
216+
static DeviceEnergyManagementTestEventTriggerHandler sDeviceEnergyManagementTestEventTriggerHandler;
217+
if (pTestEventDelegate != nullptr)
218+
{
219+
VerifyOrDie(pTestEventDelegate->AddHandler(&sDeviceEnergyManagementTestEventTriggerHandler) == CHIP_NO_ERROR);
220+
}
221+
#endif
222+
223+
#endif // SL_MATTER_TEST_EVENT_TRIGGER_ENABLED
224+
123225
// Update the LCD with the Stored value. Show QR Code if not provisioned
124226
#ifdef DISPLAY_ENABLED
125227
GetLCD().WriteDemoUI(LightMgr().IsLightOn());
@@ -168,7 +270,7 @@ void AppTask::AppTaskMain(void * pvParameter)
168270
}
169271
}
170272

171-
void AppTask::EvseActionEventHandler(AppEvent * aEvent)
273+
void AppTask::EnergyManagementActionEventHandler(AppEvent * aEvent)
172274
{
173275
bool initiated = false;
174276
int32_t actor;
@@ -201,7 +303,7 @@ void AppTask::ButtonEventHandler(uint8_t button, uint8_t btnAction)
201303

202304
if (button == APP_EVSE_SWITCH && btnAction == static_cast<uint8_t>(SilabsPlatform::ButtonAction::ButtonPressed))
203305
{
204-
button_event.Handler = EvseActionEventHandler;
306+
button_event.Handler = EnergyManagementActionEventHandler;
205307
AppTask::GetAppTask().PostEvent(&button_event);
206308
}
207309
else if (button == APP_FUNCTION_BUTTON)

examples/platform/silabs/SiWx917/BUILD.gn

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ declare_args() {
4040
#default Wifi Password
4141
chip_default_wifi_psk = ""
4242

43-
# Enable TestEventTrigger in GeneralDiagnostics cluster
44-
sl_enable_test_event_trigger = false
45-
4643
# The EnableKey in hex string format used by TestEventTrigger command in
4744
# GeneralDiagnostics cluster. The length of the string should be 16 bytes.
4845
sl_test_event_trigger_enable_key = "00112233445566778899AABBCCDDEEFF"

0 commit comments

Comments
 (0)