user37621: //In order to connect, 

SoftwareSerial esp8266(2,3); 

// the TX pin of esp8266 is connected to pin 3 of 
// arduino uno and RX pin is connected to 2    
// we need to pass baud rate to begin function

void setup()
{
  Serial.begin(115200);
  esp8266.begin(???); // what should i do in order to make it work?
}

What should i do in order to make it work?

user76737: I encountered a similar situation where I accidentally set the baudrate to 8000 with the AT commands.
Thankfully I remembered the baud rate I set, so I used PuttY to create a serial communication with the port with the weird 8000 baud rate and changed the baud rate back to 9600.
The method can be found here: http://flower-platform.com/2015/12/16/esp8266-with-at-commands-connect-from-pc-with-putty/
The AT command I used to change the baud rate:
AT+UART_DEF=9600,8,1,0,0

37621: <pre><code>//In order to connect, 

SoftwareSerial esp8266(2,3); 

// the TX pin of esp8266 is connected to pin 3 of 
// arduino uno and RX pin is connected to 2    
// we need to pass baud rate to begin function

void setup()
{
  Serial.begin(115200);
  esp8266.begin(???); // what should i do in order to make it work?
}
</code></pre>

<p>What should i do in order to make it work?</p>
 76737: <p>I encountered a similar situation where I accidentally set the baudrate to 8000 with the AT commands.</p>
<p>Thankfully I remembered the baud rate I set, so I used PuttY to create a serial communication with the port with the weird 8000 baud rate and changed the baud rate back to 9600.</p>
<p>The method can be found here: <a href="http://flower-platform.com/2015/12/16/esp8266-with-at-commands-connect-from-pc-with-putty/" rel="nofollow noreferrer">http://flower-platform.com/2015/12/16/esp8266-with-at-commands-connect-from-pc-with-putty/</a></p>
<p>The AT command I used to change the baud rate:
<code>AT+UART_DEF=9600,8,1,0,0</code></p>
