//[ Issue Fix ] Error in printing IP address using Esp8266 NodeMcu. How to fix ?

[ Issue Fix ] Error in printing IP address using Esp8266 NodeMcu. How to fix ?

Issue Description : The following is the code used to print local IP of esp8266 NodeMCU board

#include “ESP8266WiFi.h”

const char* ssid = “ssid”; //Enter SSID
const char* password = “password”; //Enter Password

void setup(void)
{
Serial.begin(115200);
// Connect to WiFi
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(“*”);
}

Serial.println(“”);
Serial.println(“WiFi connection Successful”);
Serial.print(“The IP Address of ESP8266 Module is: “);
Serial.print(WiFi.localIP());// Print the IP address
}

void loop()
{
// EMPTY
}

Setting Details given below

After flashing the code to Esp8266 . Not printing output in serial Monitor . showing a some garbage symbols instead .

how to fix this issue ?

Answer to this question & More related question is shared in the Discussion section below . Join in our discussion and your problem will be fixed by experts in these fields . Read Our privacy policy and Terms and condition .

If your problem is different Then share with us . here’s a article : How to join in a discussion ? also read : How to start own discussion ?

Nirmal Ram is the Founder & CEO of pineapplem3 Inc , Co-Founder of Gene Ai Foundation & Researcher in Artificial Intelligence & Machine Learning. Born on April 1998 in Kerala ,India . He's a passionate Programmer & Developer . He believed in his work with ethics and filled with confidence. His start-up journey begins on 2016 , Skilled in handling 10+ computer Languages .He's Hard worker , Freelancer & Instructor . He started earning with his Freelancing Journey since 2017. brought up pineapplem3.com worth about $67.16 in 2016.