Hi,
You can find this example setup both central and peripheral role, I suggest to start with it:
https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/samples/bluetooth/central_and_peripheral_hr/README.html
Kenneth
Yes, I compared central_and_peripheral_hr routines, and turned on broadcast and scan at the same time, and only scanning, printk couldn't print
我处理了它,central_uart 和 peripheral_uart 移植,并且能够同时打开广播和扫描。为什么需要将 scan enable 放在广播启用器前面,否则不会同时打开广播和扫描。我想问另一个问题,我不能用 printk() 打印,我可以用 printf() 打印。我上面配置的地方有错吗?
Logging normally have the lowest priority, so unless the chip enter idle it may not write it to the terminal, you can change this by setting CONFIG_LOG_MODE_IMMEDIATE=y.
Kenneth
Hi, the 5340 scan to get the broadcast full data is that interface