LoRa transmission

Hi every body,
I need to send data between two b_L072z_LoRawan using LoRa .
I start by using the ping pong code from Cube Expansion Library from ST, but I need To configure one as transmitter and the other as a receiver, any help please

Thank you