3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2019 Google LLC.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 * Example project configuration file for CHIP.
24 * This is a place to put application or project-specific overrides
25 * to the default configuration values for general CHIP features.
32 * CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY
34 * Enables the use of a hard-coded default Chip device id and credentials if no device id
35 * is found in Chip NV storage.
37 * This option is for testing only and should be disabled in production releases.
39 #define CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY 34
41 // Use a default pairing code if one hasn't been provisioned in flash.
42 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 12345678
43 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
45 // For convenience, Chip Security Test Mode can be enabled and the
46 // requirement for authentication in various protocols can be disabled.
48 // WARNING: These options make it possible to circumvent basic Chip security functionality,
49 // including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
51 #define CHIP_CONFIG_SECURITY_TEST_MODE 0
52 #define CHIP_CONFIG_REQUIRE_AUTH 1
55 * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
57 * 0x235A: Chip's Vendor Id.
59 #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x235A
62 * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
64 * 0xFE00: SDK Sample Light Resource
66 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0xFD00
69 * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION
71 * The product revision number assigned to device or product by the device vendor. This
72 * number is scoped to the device product id, and typically corresponds to a revision of the
73 * physical device, a change to its packaging, and/or a change to its marketing presentation.
74 * This value is generally *not* incremented for device software revisions.
76 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION 1
79 * CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
81 * A string identifying the firmware revision running on the device.
82 * CHIP service currently expects the firmware version to be in the format
83 * {MAJOR_VERSION}.0d{MINOR_VERSION}
85 #ifndef CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
86 #define CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION "0.1ALPHA"
89 * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
91 * Enable support for Chip-over-BLE (CHIPoBLE).
93 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
96 * CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC
98 * Enables synchronizing the device's real time clock with a remote Chip Time service
99 * using the Chip Time Sync protocol.
101 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
104 * CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER
106 * Enables the use of a hard-coded default serial number if none
107 * is found in Chip NV storage.
109 #define CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER "DUMMY_SN"
112 * CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
114 * Enable recording UTC timestamps.
116 #define CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1
119 * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
121 * A size, in bytes, of the individual debug event logging buffer.
123 #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)