user11152: Is there a particular function in the library TinyGPS or TinyGPS Plus which outputs the raw NMEA sentences? I couldn't find anything about it on the website guide of the library.

user10794: There doesn't seem to be, but what you could do is print each character as it arrives. From their example code:
  while (nss.available())
  {
    if (gps.encode(nss.read()))    // <--- pass to TinyGPS
      return true;
  }

So, change that to be:
  while (nss.available())
  {
    char c = nss.read();  // <--- get the incoming character
    Serial.print (c);     // <--- print it
    if (gps.encode(c))    // <--- now pass it to TinyGPS
      return true;
  }


11152: <p>Is there a particular function in the library TinyGPS or TinyGPS Plus which outputs the raw NMEA sentences? I couldn't find anything about it on the website guide of the library.</p>
 10794: 

<p>There doesn't seem to be, but what you could do is print each character as it arrives. From their example code:</p>

<pre class="lang-C++ prettyprint-override"><code>  while (nss.available())
  {
    if (gps.encode(nss.read()))    // &lt;--- pass to TinyGPS
      return true;
  }
</code></pre>

<p>So, change that to be:</p>

<pre class="lang-C++ prettyprint-override"><code>  while (nss.available())
  {
    char c = nss.read();  // &lt;--- get the incoming character
    Serial.print (c);     // &lt;--- print it
    if (gps.encode(c))    // &lt;--- now pass it to TinyGPS
      return true;
  }
</code></pre>
