How to print NMEA data to serial monitor only

Hi,

I am using the TinyGPS++ library. I have a NodeMCU connected to my GPS module (NEO-6MV2).

I have a very complex code that is working perfectly, encoding the NMEA data, outputting the longitude latitude etc.

However, for my write up, I want to output raw, un-encoded NMEA data. But I can't figure out how to do this?

In my loop, I figured;

void loop(){
if (ss.available() < 0){
  char c = ss.read(); 
  Serial.print(c);  
}
}

Should work? But nothing is appearing on the serial monitor!

Cheers!

if (ss.available() < 0){ // > 0 ?

Solution found:

void loop()
{
while(!(ss.available())){}
Serial.write(ss.read());
}

ss is the SoftwareSerial.

Ryanlb96:
Solution found:

void loop()
{
while(!(ss.available())){}
Serial.write(ss.read());
}

ss is the SoftwareSerial.

You can do that on an ESP8266 device without the watchdog timer forcing a restart ?