feat(nimble): Added changes in examples to have code under flags

This commit is contained in:
Rahul Tank
2026-03-20 11:07:00 +05:30
parent 745b7bea38
commit 235397dc75
21 changed files with 96 additions and 9 deletions
@@ -243,8 +243,12 @@ gatt_svr_init(void)
#if CONFIG_BT_NIMBLE_GAP_SERVICE
ble_svc_gap_init();
#endif /* CONFIG_BT_NIMBLE_GAP_SERVICE */
#if MYNEWT_VAL(BLE_GATTS)
ble_svc_gatt_init();
#endif
#if CONFIG_BT_NIMBLE_ANS_SERVICE
ble_svc_ans_init();
#endif
rc = ble_gatts_count_cfg(gatt_svr_svcs);
if (rc != 0) {