ESP8266 programming error

Can anyone help me to solve this problem ?

I'm supposed to get "Wifi Connected" and "IP address" on my serial monitor.

The program is attached here.

That is not a program, that is a picture.

See the instructions for posting code.

Here is the code

#include "ESP8266WiFi.h"
// WiFi parameters
const char* ssid = "hari1234";
const char* password = "hari1234";
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() {
}

I tried your code with my ESP8266-12 and it does come up with wifi connected and shows the assigned ip so the code is OK. Can you show a picture, diagram or schematic of your setup (wiring and components)? What board are you choosing in the boards menu? Which ESP8266 are you using? Describe the process that you use to upload code. What does serial monitor show when you reset the ESP?

I followed this

TUTORIAL

Here is the screenshot of my serial monitor

a more clear picture of serial monitor

The code works for me (with my ssid and pw), so the problem is in the hardware or the programming process. The screen shot does not help me beyond illustrating that the ESP was not programmed. I have no idea of your hardware setup or how you have tried to program the ESP. I can't give informed advice without knowing more.

Here is the harware setup. I'm using ESP8266-01 wifi module

Here is the pinout

To upload the program I used " Generic ESP8266 Module " board in the Arduino IDE.

I tried Reset pin in the Module but the result on the serial monitor was same.

All I want to do now is to Send AT commands to my ESP8266-01 module and Configure it to my wifi network, so that it will automatically connect to my wifi network in future.Please suggest any method
for that :frowning:

I tried Reset pin in the Module but the result on the serial monitor was same.

OK, the serial port wiring and the baud rate are good.

If you type AT into serial monitor is there any response? If not, the firmware version might no support AT commands. You have a couple of choices if the AT commands don't work. Upload, to the ESP, the AT firmware or program the ESP with the IDE. There are many articles on the web showing how to upload the AT firmware. Using the IDE will not allow the use of AT commands but, as you know, there are examples to help you connect and use the network. Follow the schematic below to set up for programming (using IDE or flashing AT firmware). V+ MUST be 3.3V. 5V on any input can damage the ESP. To put the ESP in programming mode push the FLASH button and hold it down while pushing and releasing RST. The ESP should go to programming mode and you can upload your code.

The schematic is from All About Circuits web site

If powering from a USB adapter, it would probably be a good idea to put a 100 µF capacitor across the 3.3 V supply.