ESP8266 Wi-Fi Module Access Point Configuration Problem

I've successfully got my ESP8266 working and was able to set is as an access point through the following AT command :

AT+CWMODE=3

This sets the module as an access point and ready to connect to another network.

It gives it a default configuration of an SSID of "ESP8266" with no security or password.

This works great and there is an AT command to change its access point configuration :

AT+CWSAP=ssid,pwd,chl,ecn

Where :

ssid: string, ESP8266 softAP’ SSID
pwd: string, MAX: 64 bytes
chl: channel id
ecn:
0 OPEN
2 WPA_PSK
3 WPA2_PSK
4 WPA_WPA2_PSK

This is documented here :

When I try the following example :

AT+CWSAP="esp_123","1234567890",5,3

It doesn't work as expected and the module seems to ignore the fact that I chose "WPA2_PSK" encryption and act as an open network with no password.

However when I try :

AT+CWSAP="esp_123","1234567890",5,0

The module acts as having "WPA2_PSK" encryption but the password doesn't work and I get an authentication problem on my Android device.

Isn't the AP command AT+CWMODE=2 ?
Try resetting module after each command AT+RST

Password can not be shorter that 8 chars.

cruj:
Password can not be shorter that 8 chars.

Great,

That was the solution. Also, your password cant contains only numbers

jacktrow1:
I've successfully got my ESP8266 working and was able to set is as an access point through the following AT command :

AT+CWMODE=3

This sets the module as an access point and ready to connect to another network.

It gives it a default configuration of an SSID of "ESP8266" with no security or password.

This works great and there is an AT command to change its access point configuration :

AT+CWSAP=ssid,pwd,chl,ecn

Where :

ssid: string, ESP8266 softAP’ SSID
pwd: string, MAX: 64 bytes
chl: channel id
ecn:
0 OPEN
2 WPA_PSK
3 WPA2_PSK
4 WPA_WPA2_PSK

This is documented here :

CWSAP · espressif/ESP8266_AT Wiki · GitHub

When I try the following example :

AT+CWSAP="esp_123","1234567890",5,3

It doesn't work as expected and the module seems to ignore the fact that I chose "WPA2_PSK" encryption and act as an open network with no password.

However when I try :

AT+CWSAP="esp_123","1234567890",5,0

The module acts as having "WPA2_PSK" encryption but the password doesn't work and I get an authentication problem on my Android device.

I use ESP8266 in my project which sending temperature and humid to Android phone.

For setting ESP8266 to AP mode.
I had to set by follow below.
SSID = "ABC" --> Contained only normal character (no use special charater)
PWD = Use only character not exceed 8 characters.
chl = Use only number 0-4
ecn = 0 (No encryption)

It's work.
Try this setting. :slight_smile:

cruj:
Password can not be shorter that 8 chars.

Isaranu:
PWD = Use only character not exceed 8 characters.

There's some contradictory information here. Which is it, >=8 characters or <=8 characters?

Password should be more than 8 characters & should not contain only numbers.