Skip to content

Commit

Permalink
disable enpoint on esp32 and silabs
Browse files Browse the repository at this point in the history
  • Loading branch information
soares-sergio committed Oct 22, 2024
1 parent ac11559 commit f05afff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/energy-management-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <EnergyManagementAppCmdLineOptions.h>
#include <app/server/Dnssd.h>
#include <app/server/OnboardingCodesUtil.h>
#include <app/util/endpoint-config-api.h>
#include <credentials/DeviceAttestationCredsProvider.h>
#include <credentials/examples/DeviceAttestationCredsExample.h>
#include <platform/ESP32/ESP32Utils.h>
Expand Down Expand Up @@ -173,10 +174,14 @@ void ApplicationInit()
#if CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE

EvseApplicationInit(kEvseEndpoint);
// Disable Water Heater Endpoint
emberAfEndpointEnableDisable(kWaterHeaterEndpoint, false);
#endif // CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE

#if CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
FullWhmApplicationInit(kWaterHeaterEndpoint);
// Disable EVSE Endpoint
emberAfEndpointEnableDisable(kEvseEndpoint, false);
#endif // CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
}

Expand Down
5 changes: 5 additions & 0 deletions examples/energy-management-app/silabs/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <app/server/OnboardingCodesUtil.h>
#include <app/server/Server.h>
#include <app/util/attribute-storage.h>
#include <app/util/endpoint-config-api.h>
#include <assert.h>
#include <lib/support/BitMask.h>

Expand Down Expand Up @@ -148,12 +149,16 @@ void ApplicationInit()
SILABS_LOG("energy-management-example EVSE starting. featureMap 0x%08lx", DeviceEnergyManagement::sFeatureMap.Raw());

EvseApplicationInit(kEvseEndpoint);
// Disable Water Heater Endpoint
emberAfEndpointEnableDisable(kWaterHeaterEndpoint, false);
#endif // CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE

#if SL_CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
SILABS_LOG("energy-management-example WaterHeater starting. featureMap 0x%08lx", DeviceEnergyManagement::sFeatureMap.Raw());

FullWhmApplicationInit(kWaterHeaterEndpoint);
// Disable EVSE Endpoint
emberAfEndpointEnableDisable(kEvseEndpoint, false);
#endif // CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE
SILABS_LOG("==================================================");

Expand Down

0 comments on commit f05afff

Please sign in to comment.