Trying to relay blynk commands over Lora Arduino Shield

Hello all.
i am trying to connect an Arduino Mega to Arduino Mega with wifi capabilities built in (ATMEGA2560 256KB FLASH PLUS ESP8266 32MBIT) over a lora network. so my wifi board will work as the server and connect to blynk and then transmit and recieve messages to the arduino mega with the lora shield.
the messages will mainly be turning pin on and off to control relays. the arduino mega will also transmit voltage and current to the mega wifi board and then on to blynk server.
i am working with the radiohead library on the arduino IDE.
i have managed to get both boards communicating with each other recieving simple messages and replying.
my issue is i cant figure out how to convey a pin on/off command over LORA.
i have not found any info on the internet to fix my problems.
also its quite annoying to keep removing the lora shield to change the dipswitches everytime i try a different code.
my code is hardly understandeable i hope someone can help.

#define BLYNK_PRINT Serial
#include <SPI.h>
#include <RH_RF95.h>

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

RH_RF95 rf95;
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "j-V-0WUhtUSILljKr3pSAh";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "";
char pass[] = "";


// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial3

// or Software Serial on Uno, Nano...
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX
BlynkTimer timer;
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);
int led = 8;
int PUMP1_button;
int PUMP2_button;
int PUMP3_button;


void setup()
{
  // Debug console
  Serial.begin(9600);
 pinMode(led, OUTPUT);     
 
  while (!Serial) ; // Wait for serial port to be available
  if (!rf95.init())
    Serial.println("init failed"); 
  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  //Blynk.begin(auth, wifi, ssid, pass);
  // You can also specify server:
  Blynk.begin(auth, wifi, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}

  BLYNK_WRITE(V1)
{
  PUMP1_button = param.asInt(); // Get Hotvalve app button State

}

void loop()
{
  Blynk.run();
 timer.run();
}

void SendPump1()
{
   if(PUMP1_button == 1)
  {Blynk.virtualWrite(V0, 255);
  Serial.println("Pump 1 On");
 // I WANT THE ARDUINO WIFI BOARD TO SEND DATA FROM THIS CODE TO THE ARDUINO MEGA TO TURN ON PIN 52.
  }
  else
  {
    Serial.println("Pump 1 Off");
    Blynk.virtualWrite(V3, 0);
 
  }
}