'GATEWAY : receiving data with LORA and sending with GPRS to a server

I'm building a gateway for an IoT project , I need to receive sensor data (from an end device) with LORA(rfm95) and send it to the cayenne server with GPRS(sim800c) the PCB is almost ready but m stuck at the coding part , how to configure it to work with two different protocols



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source