#define BLYNK_PRINT Serial
#include <SoftwareSerial.h>
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <SPI.h>
#include <LoRa.h>
#include <Ethernet.h>
String longi;
String latt;
float a;
float b;
SoftwareSerial EspSerial(4, 3); // RX, TX
char auth[] = "4RYGKOFS-V7ihYHwuGl6F4EjirgzVgI-";
WidgetMap myMap(V0);
BlynkTimer timer;
char ssid[] = "redmi";
char pass[] = "";
unsigned int move_index = 1;
#define ESP8266_BAUD 115200
ESP8266 wifi(&ESPSerial);
void setup() {
Serial.begin(9600);
while (!Serial);
EspSerial.begin(ESP8266_BAUD);
Serial.println("LoRa Receiver");
if (!LoRa.begin(868E6)) {
Serial.println("Starting LoRa failed!");
while (1);
}
Blynk.begin(auth, wifi, ssid, pass);
}
void loop() {
Blynk.run();
myMap.location(move_index, a, b, "GPS_Location");
// try to parse packet
int packetSize = LoRa.parsePacket();
if (packetSize) {
// received a packet
Serial.print("Received packet '");
// read packet
while (LoRa.available()) {
while (LoRa.available()) {
longi = LoRa.readStringUntil(':');
Serial.print(longi);
a=longi.toFloat();
Serial.print(" ");
latt = LoRa.readStringUntil(':');
Serial.print(latt);
b=latt.toFloat();
}
// print RSSI of packet
Serial.print("' with RSSI ");
Serial.println(LoRa.packetRssi());
}
timer.run();
}
this ia the code iam using its not working please help