Merge branch 'bugfix/add_dis_ieee_udi_to_config' into 'master'

fix(nimble): Add option to disable IEEE and UDI Characteristic in DIS

See merge request espressif/esp-idf!50254
This commit is contained in:
Rahul Tank
2026-07-18 09:31:15 +05:30
3 changed files with 27 additions and 1 deletions
+14
View File
@@ -1002,6 +1002,20 @@ menu "Services"
help
Enable the DIS PnP ID characteristic
config BT_NIMBLE_SVC_DIS_IEEE
depends on BT_NIMBLE_DIS_SERVICE
bool "IEEE"
default y
help
Enable the DIS IEEE characteristic
config BT_NIMBLE_SVC_DIS_UDI
depends on BT_NIMBLE_DIS_SERVICE
bool "UDI"
default y
help
Enable the DIS UDI characteristic
config BT_NIMBLE_SVC_DIS_INCLUDED
depends on BT_NIMBLE_DIS_SERVICE
bool "DIS as an Included Service"
@@ -1842,6 +1842,18 @@
#define MYNEWT_VAL_BLE_SVC_DIS_PNP_ID_READ_PERM (-1)
#endif
#if CONFIG_BT_NIMBLE_SVC_DIS_IEEE
#define MYNEWT_VAL_BLE_SVC_DIS_IEEE_READ_PERM (0)
#else
#define MYNEWT_VAL_BLE_SVC_DIS_IEEE_READ_PERM (-1)
#endif
#if CONFIG_BT_NIMBLE_SVC_DIS_UDI
#define MYNEWT_VAL_BLE_SVC_DIS_UDI_READ_PERM (0)
#else
#define MYNEWT_VAL_BLE_SVC_DIS_UDI_READ_PERM (-1)
#endif
#ifndef MYNEWT_VAL_BLE_SVC_DIS_INCLUDED
#define MYNEWT_VAL_BLE_SVC_DIS_INCLUDED (CONFIG_BT_NIMBLE_SVC_DIS_INCLUDED)
#endif