Blynk cannot get data from the arduino

#include <TinyGPS++.h>
#include <SoftwareSerial.h>
#define BLYNK_PRINT Serial 
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <SPI.h>

char auth[] = "WxPU-mhO9RCwxuLetpqIOUsGgEqm7jZa";
char ssid[] = "mazeband";
char pass[] = "Badin0509";

SoftwareSerial EspSerial(2, 3); // RX, TX
SoftwareSerial serial_gps(9, 8); // RX = pin 10, TX = pin 11
TinyGPSPlus gps;
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);
WidgetMap myMap(V1);
BlynkTimer timer;

double latitude, longitude;
void myTimerEvent()
{
  serial_gps.listen();
  while(serial_gps.available()) 
  {
    gps.encode(serial_gps.read());
    
  }
  
  if(gps.location.isUpdated()) 
  {
    
    latitude = gps.location.lat();
    longitude = gps.location.lng();
    String link = "http://www.google.com/maps/place/" + String(latitude, 6) + "," + String(longitude, 6) ;
//    Serial.print("Link Google Maps : ");
//    Serial.println(link);
//    Serial.print("Latitude : ");
//    Serial.println(latitude, 6);
//    Serial.print("Longitude : ");
//    Serial.println(longitude, 6);
//    Serial.println("");
//    Blynk.email("xxx@hotmail.com", "GPS Test 1", "GPS Test 2");
//    Blynk.notify("1st Try");
     Blynk.virtualWrite(V4, latitude);
     Blynk.virtualWrite(V15, longitude);
  }
 
}
void setup() 
{
  Serial.begin(9600);
//  delay(10);
  EspSerial.begin(ESP8266_BAUD);
//  delay(10);
  Blynk.begin(auth, wifi, ssid, pass);
  serial_gps.begin(9600);
//  delay(10);
  Serial.println("GPS Startup");
  timer.setInterval(100L, myTimerEvent);
//   int index = 0;
//  float lat = 51.5074;
//  float lon = 0.1278;
// Blynk.virtualWrite(V4, lat);
}

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

@Shamrizaidy_Shamsudi please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct character on your keyboard.

Pete.

done edit sir

i got issue this coding cannot send data to Blynk app

Are pins 9 & 8 suitable pins to use with SoftwareSerial on whatever type of board it is that you’re using?

If you un-comment those serial print statements in myTimerEvent then do you see any lat/long data coming from your GPS module?

Pete.

when i un-comment the serial statement i can get the data in serial monitor but cant send the to blynk app

What widget types are attached to V4 and V15?

Does you device show as being online in the Blynk app?

Do you have more than one device set up in your Blynk app project?

Pete.

widget at V4 is value display
widget at V5 also value display
the blynk app show online i run the code
but cant send the data to blynkk app.
i setupp the project just arduino uno, esp8266 and the gps module

You aren’t sending the longitude to V5, you’re sending it to V15

What Blynk library version are you using?

Pete.

im using version 2.27.28

That looks like the app version, not the C++ library version installed in your Arduino IDE.

Pete.

Okay, uninstall this beta version and install 0.6.1 instead then re-test.

Pete.

#define BLYNK_PRINT Serial
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <SPI.h>
#define ESP8266_BAUD 9600
char auth[] = "WxPU-mhO9RCwxuLetpqIOUsGgEqm7jZa";
char ssid[] = "mazeband";
char pass[] = "Badin0509";
SoftwareSerial EspSerial(2, 3); // RX, TX
static const int RXPin = 9, TXPin = 8;
static const uint32_t GPSBaud = 9600;
TinyGPSPlus gps;
SoftwareSerial ss(RXPin, TXPin);
ESP8266 wifi(&EspSerial);
BlynkTimer timer;
WidgetMap myMap(V1);
int atas;
int bawah;
void myTimerEvent()
{
 while (ss.available() > 0){
   gps.encode(ss.read());
   if (gps.location.isUpdated()){
     Serial.print("Latitude= "); 
     Serial.print(gps.location.lat(), 6);
     Serial.print(" Longitude= "); 
     Serial.println(gps.location.lng(), 6);
     atas = (gps.location.lat(),6);
     bawah = (gps.location.lng(),6);
   }
 }
     
}
void setup()
{
  // Debug console
  Serial.begin(9600);
  ss.begin(GPSBaud);
  EspSerial.begin(ESP8266_BAUD);
  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(1928,1,100), 8080);
   timer.setInterval(1000L, myTimerEvent);
}

void loop()
{
   
 
  Blynk.run();
  timer.run(); // Initiates BlynkTimer
}



i want appear the data variable atas and bawah to blynk

when i do modified on code and install version 0.6.1 still cant send the data to blynk

And which bit of your modified code do you think is sending data to Blynk?

Pete.

#include <TinyGPS++.h>
#include <SoftwareSerial.h>
static const int RXPin = 9, TXPin = 8;
static const uint32_t GPSBaud = 9600;
// The TinyGPS++ object
TinyGPSPlus gps;
// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);
void setup(){
 Serial.begin(9600);
 ss.begin(GPSBaud);
}
void loop(){
 // This sketch displays information every time a new sentence is correctly encoded.
 while (ss.available() > 0){
   gps.encode(ss.read());
   if (gps.location.isUpdated()){
     Serial.print("Latitude= "); 
     Serial.print(gps.location.lat(), 6);
     Serial.print(" Longitude= "); 
     Serial.println(gps.location.lng(), 6);
   }
 }
}



before i insert the blynk code i already test this code and the data of serial appear

void myTimerEvent()
{
 while (ss.available() > 0){
   gps.encode(ss.read());
   if (gps.location.isUpdated()){
     Serial.print("Latitude= "); 
     Serial.print(gps.location.lat(), 6);
     Serial.print(" Longitude= "); 
     Serial.println(gps.location.lng(), 6);
     atas = (gps.location.lat(),6);
     bawah = (gps.location.lng(),6);
   }
 }
     
}

i want send the variable atas and bawah to blynkk app

I don’t really understand what you’re saying, but dumping lots of badly formatted code into your posts isn’t helping you resolve the problem.

My guess is that your original code would work if you used the 0.6.1 library, or at the very least would be a good starting point to get to a sketch that does work, but you appear to have installed the correct library and started using different sketches that are not appropriate to use with Blynk.

Pete.