Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Syed Niamath
#54600 Thanks for the response. Sorry for the delay in getting back to you.

@Rudy, Please ignore the image, as mentioned in my post that I was a able to successfully run the sketch of WifiScan and can see all the networks around me. I was using ESP8266 with Arduino IDE to program and upload the sketch.

The only problem I am having is not able to print my local IP, I am running the below program through Arduino IDE. Since, this being a key thing for connecting my wifi I tried different ESP8266 with no results.

When I tried Putty with serial connection type selected for AT command the console didn't return anything .

Is this could be something related to my WIFI router ?

// Import required libraries
#include "ESP8266WiFi.h"

// WiFi parameters
const char* ssid = "your_wifi_name";
const char* password = "your_wifi_password";

void setup(void)
{
// Start Serial
Serial.begin(115200);

// Connect to WiFi
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");

// Print the IP address
Serial.println(WiFi.localIP());

}

void loop() {

}