CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DIS=y
CONFIG_BT_BAS=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_CTLR_CONN_RSSI=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y
#enable auto update mtu, for negotaiining automatically mtu higher than default (rx/tx: 23 bytes),ref:https://devzone.nordicsemi.com/f/nordic-q-a/95235/how-to-increase-ble-data-per-packet-from-23-to-higher-than-64-bytes-on-ble-gatt-client-or-ble-central-device-using-ncs
CONFIG_BT_GATT_AUTO_UPDATE_MTU=y
#enabling central function, use as ref (prj.conf):https://github.com/nrfconnect/sdk-nrf/tree/v2.7.0/samples/bluetooth/central_and_peripheral_hr
CONFIG_BT_CENTRAL=y
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
#enabling BLE LONG RANGE (coded phy), ref: https://github.com/nrfconnect/sdk-nrf/tree/v2.7.0/samples/bluetooth/peripheral_hr_coded
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_USER_PHY_UPDATE=y
#disable bonding
CONFIG_BT_BONDABLE=n


#set the BLE tx output power to maximum (dynamic set is also available)
CONFIG_BT_CTLR_TX_PWR_ANTENNA=20

#avoid peripheral using CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS, the central choose the best ones
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n

#ENABLE MULTIPLE ADVERTISING SET for legacy adverting and extended adversting(long range) simultianously, ref: https://github.com/nrfconnect/sdk-nrf/tree/v2.7.0/samples/bluetooth/multiple_adv_set
CONFIG_BT_EXT_ADV_MAX_ADV_SET=2
# 1 peripheral conenction + 1 peripherla long range connection + 1 central connection (normal or long range, mutual exclusion)
CONFIG_BT_MAX_CONN=3
#1 peripheral conenction + 1 peripherla long range connection, ref: // ref: https://devzone.nordicsemi.com/f/nordic-q-a/112687/multiple-advertising-sets-simultaneously-connectable
CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=2 

#enable name filter
CONFIG_BT_SCAN_NAME_CNT=1

#increase the number of gatt attribute that could find the GATT discovery manager
CONFIG_BT_GATT_DM_MAX_ATTRS=70
#heap memory is requeried for GATT discovery manager since it allocates memory dynamically
CONFIG_HEAP_MEM_POOL_SIZE=1024
#enable print information by GATT DISCOVERY MANAGER
CONFIG_BT_GATT_DM_DATA_PRINT=y



#enable BLE ota, REF: https://github.com/nrfconnect/sdk-nrf/blob/v3.0.2/samples/common/mcumgr_bt_ota_dfu/Kconfig
#NOTE: this kconfig changes the value of ble buffers (mtu (BT_L2CAP_TX_MTU) etc..). BE AWARE when disbaling to match yout application needs.
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y

#Since CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU is defiend, it handles the BT_buf STUFF, Allow for large Bluetooth data packets. Ref: https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/samples/subsys/mgmt/mcumgr/smp_svr/overlay-bt.conf#L4
#CONFIG_BT_L2CAP_TX_MTU=498
#CONFIG_BT_BUF_ACL_RX_SIZE=502
#CONFIG_BT_BUF_ACL_TX_SIZE=502
#CONFIG_BT_CTLR_DATA_LENGTH_MAX=251



#enable rain modules
CONFIG_RAIN_BLE_COMMON=y


	