Commit 1415406 1 parent 6bab464 commit 1415406 Copy full SHA for 1415406
File tree 4 files changed +27
-2
lines changed
config/esp32/components/chip
4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,18 @@ menu "CHIP Device Layer"
367
367
help
368
368
The size (in bytes) of the service directory cache. This limits the maximum size of the directory
369
369
that can be returned in response to a service directory query.
370
+
371
+ config ENABLE_EXTENDED_DISCOVERY
372
+ bool "Enable Extended discovery Support"
373
+ default n
374
+ help
375
+ Enables support for Extended Discovery.
376
+
377
+ config ENABLE_COMMISSIONABLE_DEVICE_TYPE
378
+ bool "Enable Device type in commissionable node discovery."
379
+ default n
380
+ help
381
+ Enables or Disables the support for Commissionable Device Type.
370
382
371
383
endmenu
372
384
@@ -409,6 +421,12 @@ menu "CHIP Device Layer"
409
421
help
410
422
A string identifying the firmware revision running on the device.
411
423
424
+ config DEVICE_TYPE
425
+ int "Default Device type"
426
+ default 0
427
+ help
428
+ The default device type.
429
+
412
430
endmenu
413
431
414
432
menu "WiFi Station Options"
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ inline void ConfigurationManager::LogDeviceConfig()
415
415
*/
416
416
inline bool ConfigurationManager::IsCommissionableDeviceTypeEnabled ()
417
417
{
418
- return static_cast <ImplClass *>(this )->_IsCommissionableDeviceNameEnabled ();
418
+ return static_cast <ImplClass *>(this )->_IsCommissionableDeviceTypeEnabled ();
419
419
}
420
420
421
421
/* *
Original file line number Diff line number Diff line change @@ -403,7 +403,11 @@ bool GenericConfigurationManagerImpl<ImplClass>::_IsFullyProvisioned()
403
403
template <class ImplClass >
404
404
bool GenericConfigurationManagerImpl<ImplClass>::_IsCommissionableDeviceTypeEnabled()
405
405
{
406
- return CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE == 1 ;
406
+ #if CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE
407
+ return true ;
408
+ #else
409
+ return false ;
410
+ #endif
407
411
}
408
412
409
413
template <class ImplClass >
Original file line number Diff line number Diff line change 39
39
#define CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE CONFIG_MAX_EVENT_QUEUE_SIZE
40
40
#define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID CONFIG_DEVICE_VENDOR_ID
41
41
#define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID CONFIG_DEVICE_PRODUCT_ID
42
+ #define CHIP_DEVICE_CONFIG_DEVICE_TYPE CONFIG_DEVICE_TYPE
42
43
#define CHIP_DEVICE_CONFIG_DEFAULT_DEVICE_PRODUCT_REVISION CONFIG_DEFAULT_DEVICE_PRODUCT_REVISION
43
44
#define CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION_STRING CONFIG_DEVICE_FIRMWARE_REVISION
44
45
62
63
#endif // CONFIG_IDF_TARGET_ESP32H2
63
64
64
65
#define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE CONFIG_ENABLE_CHIPOBLE
66
+ #define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY CONFIG_ENABLE_EXTENDED_DISCOVERY
67
+ #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE
65
68
#define CHIP_DEVICE_CONFIG_BLE_DEVICE_NAME_PREFIX CONFIG_BLE_DEVICE_NAME_PREFIX
66
69
#define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL_MIN CONFIG_BLE_FAST_ADVERTISING_INTERVAL_MIN
67
70
#define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL_MAX CONFIG_BLE_FAST_ADVERTISING_INTERVAL_MAX
You can’t perform that action at this time.
0 commit comments