Both advertiser and scanner demonstrate the use of extended advertising and scanning, and how to gracefully restart the extended advertisements through the use of recycle() callback. In the sample, the advertiser initiates a connectable advertisement set, which prompts the scanner to connect. After the connection is established, the advertiser waits for 5 seconds to disconnect. After the connection is dropped, the advertiser immediately restarts broadcasting, while the scanner cools-down for 5 seconds to restart its process. Signed-off-by: Luis Ubieda <luisf@croxel.com>
6 lines
69 B
Plaintext
6 lines
69 B
Plaintext
CONFIG_BT=y
|
|
CONFIG_BT_CENTRAL=y
|
|
CONFIG_BT_EXT_ADV=y
|
|
|
|
CONFIG_ASSERT=y
|