I wrote serial.println in my code but the string was printed in same line on serial moniter.
#include <WiFi.h>//for connecting esp32 to a wifi
#include <TinyGPS++.h>//to obtain gps data from neo-6m gps module
#define WIFI_SSID "Airtel_pawa_4182"//wifi name in simple words
#define WIFI_PWD "Ahuja6230"//wifi password
TinyGPSPlus GPS;//creating a gps object from tinygps++ library
void setup() {
Serial.begin(9600);
//wifi setup{
WiFi.begin(WIFI_SSID, WIFI_PWD);
Serial.println("connecting to wifi");
while(WiFi.status() != WL_CONNECTED){
Serial.println(".");
delay(1000);
}
Serial.println("Successfully connected to ");
Serial.print(WIFI_SSID);
//}
//gps setup{
Serial2.begin(9600);
delay(1000);
Serial.println("ESP32-GPS Tracker");
Serial.println("Initializing...");
//}
}
void loop() {
}
In this code the string "esp32-gps tracker" is printing just after the previous string in same line on serial moniter.
I tried running code again and again but it didn't work...
I am using esp32 board(just a detail)
What do i do?