ESP8266 as SoftAP mode (AT Command Mode)

char WIFI_NAME[] ="IoTtgingHuB";                      // Create a WiFi Name
char WIFI_PASS[] ="12345678";                         // Create a WiFi Password
char WIFI_AP_IP[]="192.168.10.7";                     // Create a WiFi AccessPoint
char display[1023],wifi_send[1023],RX_ST[1023];
ESP8266_TX("AT\r\n","OK",4000);                       // Device Checking
ESP8266_TX("ATE0\r\n","OK",4000);                     // ECHO OFF
ESP8266_TX("AT+CWMODE=2\r\n","OK",4000);              // SoftAP Mode
sprintf(wifi_send,"AT+CWSAP=\"%s\",\"%s\",5,4\r\n",WIFI_NAME,WIFI_PASS);
ESP8266_TX(wifi_send,"OK",8000);                      // Create AccessPoint Server
sprintf(wifi_send,"AT+CIPAP=\"%s\",\"%s\",\"255.255.255.0\"\r\n",WIFI_AP_IP,WIFI_AP_IP);
ESP8266_TX(wifi_send,"OK",8000);                      // Create AccessPoint IP
ESP8266_TX("AT+CIPMUX=1\r\n","OK",4000);              // Create Multiconnection
ESP8266_TX("AT+CIPSERVER=1,80\r\n","OK",4000);        // Create Server Port 80
void ESP8266_TX(char *b_send,char *return_string,uint16_t delay_time)
{
            char ESP8266_TX[10];
	sprintf(ESP8266_TX,"%s",return_string);
            sprintf(wifi_send,"%s",b_send);
	HAL_UART_Transmit(&huart1,(uint8_t*)wifi_send,strlen(wifi_send),1000);
	while(1)
	{
		sprintf(RX_ST,"%s",display);
		if(strstr(RX_ST,ESP8266_TX)) break;
	}
	HAL_Delay(delay_time);
	memset (display, '\0',1023);                       // clear the buffer
	memset (wifi_send,'\0',1023);                      // clear the buffer
	memset (RX_ST, '\0',1023);                         // clear the buffer
	count=0;
}
uint8_t rx_char;
uint16_t count;
extern UART_HandleTypeDef huart1;
//-------------- Rx Callback Function -----
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
  if(huart->Instance==USART1 )
  {
    display[count++]=rx_char;
    HAL_UART_Receive_IT(&huart1,&rx_char,1);
  }
}
<!DOCTYPE html> <html>
<head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\">
<title>Load Control</title>
<style>html { font-family: ZCOOL XiaoWei; display: inline-block; margin: 2px auto; text-align: center;}body{margin-top: 40px;}
h1 {color: #0e18f3;margin: 45px auto 25px;}
h3 {color: #050505;margin-bottom: 40px;}
.button {display: block;width: 60px;background-color: #b589f0;border: none;color: white;padding: 15px 25px;text-decoration: none;font-size: 20px;margin: 0px auto 30px;cursor: pointer;border-radius: 5px;}
.button-on {background-color: #b589f0;}
.button-on:active {background-color: #2fd4e0;}
.button-off {background-color: #65537a;}
.button-off:active {background-color: #2fd4e0;}
 p {font-size: 16px;color:#040404;margin-bottom: 12px;}
</style></head><body><h1>Simple Web Server</h1>
<h3> IoT ThingHuB </h3>
<p>LOAD Status: OFF</p>
<a class=\"button button-on\" href=\"/loadon\">ON</a>
</body>
</html>
<!DOCTYPE html> <html>
<head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\">
<title>Load Control</title>
<style>html { font-family: ZCOOL XiaoWei; display: inline-block; margin: 2px auto; text-align: center;}body{margin-top: 40px;}
h1 {color: #0e18f3;margin: 45px auto 25px;}
h3 {color: #050505;margin-bottom: 40px;}
.button {display: block;width: 60px;background-color: #b589f0;border: none;color: white;padding: 15px 25px;text-decoration: none;font-size: 20px;margin: 0px auto 30px;cursor: pointer;border-radius: 5px;}
.button-on {background-color: #b589f0;}
.button-on:active {background-color: #2fd4e0;}
.button-off {background-color: #65537a;}
.button-off:active {background-color: #2fd4e0;}
 p {font-size: 16px;color:#040404;margin-bottom: 12px;}
</style></head><body><h1>Simple Web Server</h1>
<h3> IoT ThingHuB </h3>
<p>LOAD Status: ON</p>
<a class=\"button button-off\" href=\"/loadoff\">OFF</a>
</body>
</html>