From 8a849be1185804ec7cb90b1aa9fb61da4cc25868 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 7 Mar 2019 16:21:08 +0100 Subject: [PATCH] pkg/nimble: auto initialize build-in services --- pkg/nimble/contrib/nimble_riot.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/nimble/contrib/nimble_riot.c b/pkg/nimble/contrib/nimble_riot.c index da8f27c616..297b3b8e16 100644 --- a/pkg/nimble/contrib/nimble_riot.c +++ b/pkg/nimble/contrib/nimble_riot.c @@ -93,4 +93,12 @@ void nimble_riot_init(void) res = ble_hs_id_infer_auto(0, &nimble_riot_own_addr_type); assert(res == 0); (void)res; + + /* initialize the configured, build-in services */ +#ifdef MODULE_NIMBLE_SVC_GAP + ble_svc_gap_init(); +#endif +#ifdef MODULE_NIMBLE_SVC_GATT + ble_svc_gatt_init(); +#endif }