Hi,
You can try modify the BlueBeeInfo example sketch. If you have setup your BlueBee 4.0 before, actually you can just remove unnecessary functions like bluebee.setBLEName, etc.
Important functions are just following.
HM12 bluebee(rx,tx); // rx and tx are just like softwareSerial rx and tx, depends on your connection
bluebee.begin(your_baudrate);
When Bluebee is connected to other device, you can declare a integer variable like int rssi = bluebee.getRssI(); and you will get the value in return. Normally it should be negative value, if it gives value 9999,9998 or 9997, it means error.
Error:
9999 - No connection.
9998 - Try later.
9997 - Read error.
Well as for how to do it periodically, that is how you manage the coding, it is art of programming at all
Have fun exploring and learning and dare to try anything!!