drivers/nble: Add configuration for device manager
Change-Id: I6a17462bd54492c4d84b4b92bf6cfbe9a4721fab Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
4af20ab08b
commit
bcab0a8993
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue