This example from Waveshare Corporation realizes the function of a mobile phone connecting to a Bluetooth BLE beacon and receiving broadcast data.