I am learning the ESP8266 operation by using with PIC18LF2550 MCU. I tested it in WiFi Station Mode and it worked well. Now I am trying to test it in Access Point Mode but it seems there are errors with my code. My problem is that, the module which my teacher gave me does not support serial port connection between the ESP8266 to the computer. I can only program the ESP8266 via PIC18. So, I had to create a library for PIC18 making AT commands to the ESP8266.
unsigned char softAP_configuration(unsigned char* ssid, unsigned char* pass, unsigned int channel, unsigned int encryption) {
_esp8266_print("AT+CWSAP=\"");
_esp8266_print(ssid);
_esp8266_print("\",\"");
_esp8266_print(pass);
_esp8266_print("\",");
_esp8266_print(channel);
_esp8266_print(",");
_esp8266_print(encryption);
_esp8266_print("\r\n");
return _esp8266_waitResponse();
}That is my function to make the configuration command AT+CWSAP to the ESP by PIC. When I choose Access Point mode and run it, the result is that the module still uses the default settings with SSID name AI-THINKER-xxxx.