Odd problem with ESP board

I have a sketch that was working with my HiLetgo Wemos LOLIN32 board two days ago. Today it does not run. I have a BE-280 GPS module connected to the board through the RXD 2 and TXD 2 pins. I am able to upload the sketch by grounding the GPIO 0 pin and pressing RST. I am able to run the firmware by un-grounding the GPIO 0 pin and pressing RST. When it runs I get no GPS data. The GPS Led's are flashing indicating data is available. All connections are the same as when it operated correctly two days ago.
I can run a similar sketch on two ESP8266 boards by using softwareserial and the sketch displays data as it is designed to do.
I can upload another sketch (Blink) to the ESP32 board and it operates as intended. This indicates that both the GPS module and the ESP board are functioning. I am attaching the sketch code and the serial monitor output code when the sketch fails to display data. Yes, I have tried swapping RX and TX from the GPS to no avail.

#include <TinyGPS++.h>
static const uint32_t GPSBaud = 38400; // default baudrate of ATGM336H GPS device
double street = 105.110815;            //longitude of end of driveway
double dist_feet = 0;
TinyGPSPlus gps;
void setup() {
  Serial.begin(112500); // start serial monitor for debugging
  Serial2.begin(GPSBaud);
 }  
void loop() {
  while (Serial2.available() > 0){
    if (gps.encode(Serial2.read()) && gps.location.isValid() && gps.date.isValid() && gps.time.isValid()){
      double longit = String(gps.location.lng(),8).toDouble();
     // Serial.println(longit,8);        //longitude as a double
      dist_feet = (longit+ street)*360000;  //dist from end of driveway
      Serial.println(dist_feet,1);
    }
  }
}

Serial Monitor data

08:45:11.849 -> ets Jul 29 2019 12:21:46
08:45:11.849 -> 
08:45:11.849 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
08:45:11.849 -> configsip: 0, SPIWP:0xee
08:45:11.849 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
08:45:11.849 -> mode:DIO, clock div:1
08:45:11.849 -> load:0x3fff0030,len:1184


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.