3 * Copyright (c) 2021 Project CHIP Authors
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 * Example project configuration file for CHIP.
23 * This is a place to put application or project-specific overrides
24 * to the default configuration values for general CHIP features.
31 * CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY
33 * Enables the use of a hard-coded default Chip device id and credentials if no device id
34 * is found in Chip NV storage.
36 * This option is for testing only and should be disabled in production releases.
38 #define CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY 34
40 // Use a default pairing code if one hasn't been provisioned in flash.
41 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 12345678
42 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
44 // For convenience, Chip Security Test Mode can be enabled and the
45 // requirement for authentication in various protocols can be disabled.
47 // WARNING: These options make it possible to circumvent basic Chip security functionality,
48 // including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
50 #define CHIP_CONFIG_SECURITY_TEST_MODE 0
51 #define CHIP_CONFIG_REQUIRE_AUTH 1
54 * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
56 * 0x235A: Chip's Vendor Id.
58 #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x235A
61 * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
63 * 0x5350: EFR32 pigweed-app
65 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x5350
68 * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION
70 * The product revision number assigned to device or product by the device vendor. This
71 * number is scoped to the device product id, and typically corresponds to a revision of the
72 * physical device, a change to its packaging, and/or a change to its marketing presentation.
73 * This value is generally *not* incremented for device software revisions.
75 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION 1
78 * CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
80 * A string identifying the firmware revision running on the device.
81 * CHIP service currently expects the firmware version to be in the format
82 * {MAJOR_VERSION}.0d{MINOR_VERSION}
84 #ifndef CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
85 #define CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION "0.1ALPHA"
88 * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
90 * Enable support for Chip-over-BLE (CHIPoBLE).
92 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
95 * CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC
97 * Enables synchronizing the device's real time clock with a remote Chip Time service
98 * using the Chip Time Sync protocol.
100 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
103 * CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER
105 * Enables the use of a hard-coded default serial number if none
106 * is found in Chip NV storage.
108 #define CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER "DUMMY_SN"
111 * CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
113 * Enable recording UTC timestamps.
115 #define CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1
118 * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
120 * A size, in bytes, of the individual debug event logging buffer.
122 #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)
125 * CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL
127 * The interval (in units of 0.625ms) at which the device will send BLE advertisements while
128 * in fast advertising mode.
132 #define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL 40
135 * CHIP_DEVICE_CONFIG_BLE_SLOW_ADVERTISING_INTERVAL
137 * The interval (in units of 0.625ms) at which the device will send BLE advertisements while
138 * in slow advertisement mode.
142 #define CHIP_DEVICE_CONFIG_BLE_SLOW_ADVERTISING_INTERVAL 800
145 * CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_TIMEOUT
147 * The amount of time in miliseconds after which BLE should change his advertisements
148 * from fast interval to slow interval.
150 * 30000 (30 secondes).
152 #define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_TIMEOUT (30 * 1000)
155 * CHIP_DEVICE_CONFIG_BLE_ADVERTISING_TIMEOUT
157 * The amount of time in miliseconds after which BLE advertisement should be disabled, counting
158 * from the moment of slow advertisement commencement.
160 * Defaults to 9000000 (15 minutes).
162 #define CHIP_DEVICE_CONFIG_BLE_ADVERTISING_TIMEOUT (15 * 60 * 1000)