ESP01 not able to connect with android app

esp01 is not able to recieve get request from the android app for turning on/off the led,also the response code is null even if the request is sent.On reconnecting the arduino system , all the previous failed requests are instantly shown on the serial monitor.Earlier it was working properly but there was a delay before also.I am attaching both the arduino and android code below. Please Help.

Arduino Code -

#include <SoftwareSerial.h>

define DEBUG true

int led =11;
int ldr = A0;
int threshold=300;
int connectionId;
boolean iotLogic = true;
SoftwareSerial esp8266(2,3); // make RX Arduino line is pin 2, make TX Arduino line is pin 3.
// This means that you need to connect the TX line from the esp to the Arduino's pin 2
// and the RX line from the esp to the Arduino's pin 3
void setup()
{
Serial.begin(115200);
esp8266.begin(115200); // your esp's baud rate might be different