Neo 6 m in Node mcu

hi...im trying to implement neo 6 m in nodemcu but i tried with UART0 Port,, but im getting these errors...help me to resolve this issue..
.........................................................................................................................................................................
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
#include <ESP8266WiFi.h>

TinyGPSPlus gps; // The TinyGPS++ object

//SoftwareSerial ss(4, 5); // The serial connection to the GPS device
HardwareSerial ss(0);
float latitude , longitude;

String lat_str , lng_str;

void setup()
{
Serial.begin(115200);
ss.begin(9600);
}

void loop()
{

while (ss.available() > 0)
if (gps.encode(ss.read()))
{
if (gps.location.isValid())
{
latitude = gps.location.lat();
lat_str = String(latitude , 6);
longitude = gps.location.lng();
lng_str = String(longitude , 6);
Serial.print("latitude: ");
Serial.println(lat_str);
Serial.print("longitude: ");
Serial.println(lng_str);
delay(3000);
}
}
}
..........................................................................Error Message......................................................................
19:24:17.305 -> ets Jan 8 2013,rst cause:4, boot mode:(3,6)
19:24:17.305 ->
19:24:17.305 -> wdt reset
19:24:17.305 -> load 0x4010f000, len 3584, room 16
19:24:17.305 -> tail 0
19:24:17.305 -> chksum 0xb0
19:24:17.305 -> csum 0xb0
19:24:17.305 -> v5d3af165
19:24:17.305 -> ~ld

Read the forum guidelines.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

I am not sure that you can use HardwareSerial like that. Where did you see it done?

What happens when you use software serial?

You only need the ESP RX pin (unless you are sending settings to the GPS) so your software serial constructor could be:
SoftwareSerial ss(4, -1);
to save a pin.

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