Programmable xbee detecting frame signals and dispalying on characterLCD


I am trying to configure a programmable xbee so that whenever it receives a RF signal on its RX pin from another xbee it displays the message on LCD. Moreover I want to program it so that the LCD backlight only turns on when there is a change of message on the RX pin.

The issue I am getting is how to read the frame or message that has been received by the xbee. The ‘basic_frame_reception’ code sample does not tell where the received message is stored so that i could display it on an LCD. Although I could see the message on the XCTU console window.

Xbee part no. XB24CZ7UISB003-revL