This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

undefined reference to `bt_conn_le_create_auto'

Hi,

I am trying to use the function `bt_conn_le_create_auto`, but I get the following error when I try to build it:

main.c:15: undefined reference to `bt_conn_le_create_auto'

I created a simple app, just for testing.

main.c

#include <zephyr.h>
#include <sys/printk.h>
#include "bluetooth/conn.h"

void main(void)
{
	printk("Hello World! %s\n", CONFIG_BOARD);

	bt_conn_le_create_auto(NULL, NULL);
}

prj.conf

CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_MAX_CONN=2

Board/Version

  • SDK v1.7.0
  • Board NRF52840
  • West v0.12.0

Which CONFIG am I missing?

Parents Reply Children
Related