drivers/nble: Add configuration for device manager

Change-Id: I6a17462bd54492c4d84b4b92bf6cfbe9a4721fab
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2016-02-10 09:50:07 +02:00 committed by Anas Nashif
commit bcab0a8993

View file

@ -34,10 +34,23 @@
static bt_ready_cb_t bt_ready_cb;
static void send_dm_config(void)
{
struct ble_core_gap_sm_config_params config;
config.options = 1; /* bonding */
config.io_caps = 3; /* no input no output */
config.key_size = 16; /* or 7 */
ble_gap_sm_config_req(&config, NULL);
}
void on_nble_up(void)
{
BT_DBG("");
send_dm_config();
ble_get_version_req(NULL);
}