Generic gap advertising and gap scanning samples
There are two simple Bluetooth samples available. Both of these do not require any additional libraries to run.
The first sample, gap_advertise advertises a new local name for the XBee specified in the sample.
The second sample, gap_scan shows how to scan and interact with advertisements, printing all found advertisements.