On Sat, Jul 23, 2016 at 09:32:59PM +0000, Marco Ferreira wrote:
> Here's the complete config in my code:
> 
>   
> 
>     /* Configure the host. */  
>    cfg = ble_hs_cfg_dflt;  
>    cfg.max_hci_bufs = 16;  
>    // cfg.max_connections = MAX_CONNECTIONS*3;  
>    // cfg.max_gattc_procs = 5;  
>    cfg.max_l2cap_chans = cfg.max_connections * 3;  
>    // cfg.max_l2cap_sig_procs = 1;  
>    // cfg.sm_bonding = 1;  
>    // cfg.sm_our_key_dist = BLE_SM_PAIR_KEY_DIST_ENC;  
>    // cfg.sm_their_key_dist = BLE_SM_PAIR_KEY_DIST_ENC;  
>    // cfg.store_read_cb = ble_store_ram_read;  
>    // cfg.store_write_cb = ble_store_ram_write;  
>   
>    /* Populate config with the required GATT server settings. */  
>    // cfg.max_attrs = 0;  
>    // cfg.max_services = 0;  
>    // cfg.max_client_configs = 0;  

Hmm, those settings look fine to me. Are you sure
-DNIMBLE_OPT_MAX_CONNECTIONS is set to 2? Are you setting it as a target
variable in the target's pkg.yml file?

Also, just to confirm, is is ble_gap_connect() that is returning
BLE_HS_ENOMEM?

Thanks, Chris

Reply via email to