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

This commit is contained in:
Rahul Tank
2026-04-01 19:07:46 +05:30
parent 9928d929c2
commit d094d4f390
20 changed files with 95 additions and 10 deletions
@@ -226,8 +226,12 @@ gatt_svr_init(void)
{
int rc;
#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
rc = ble_gatts_count_cfg(gatt_svr_svcs);
if (rc != 0) {