Continuously Ranging 4 Beacons and Assigning their RSSI Value to integer variables

Hi, I need help on how to range 4 beacons continuously and updating their RSSI value to 4 different variables.Really have no idea on how to do it. Please help!

Can you explaine a little more of what application you are doing this for? The basic tutorial will show you how to do this