Skip to content

Commit

Permalink
Removing unnecessary clusters from tv-casting (project-chip#91)
Browse files Browse the repository at this point in the history
Remvoing some clusters that aren't necessary from the tv-casting app.

Also disabling `CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS` since it
can be dangerous to include in production use cases (see
`config/standalone/CHIPProjectConfig.h`)
  • Loading branch information
cliffamzn authored Feb 23, 2023
1 parent cb3fe93 commit a5cf58d
Show file tree
Hide file tree
Showing 15 changed files with 825 additions and 1,301 deletions.
2 changes: 2 additions & 0 deletions config/standalone/CHIPProjectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
// WARNING: This option makes it possible to circumvent basic chip security functionality.
// Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.
//
#ifndef CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS
#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 1
#endif

// Enable reading DRBG seed data from /dev/(u)random.
// This is needed for test applications and the CHIP device manager to function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@

#pragma once

// include the CHIPProjectConfig from config/standalone

#ifndef CHIP_CONFIG_KVS_PATH
#define CHIP_CONFIG_KVS_PATH "/tmp/chip_casting_kvs"
#endif

#include <CHIPProjectConfig.h>

#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY 0

#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT 1
Expand All @@ -61,3 +57,12 @@
#define CHIP_ENABLE_ROTATING_DEVICE_ID 1

#define CHIP_DEVICE_CONFIG_ROTATING_DEVICE_ID_UNIQUE_ID_LENGTH 128

// Disable this since it should not be enabled for production setups
#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 0

#define CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT 4

// Include the CHIPProjectConfig from config/standalone
// Add this at the end so that we can hit our #defines first
#include <CHIPProjectConfig.h>
Loading

0 comments on commit a5cf58d

Please sign in to comment.