Go Down

Topic: ESP8266 Wi-Fi Module Access Point Configuration Problem (Read 3678 times) previous topic - next topic

jacktrow1

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

Code: [Select]
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 :

Code: [Select]
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 :

https://github.com/espressif/esp8266_at/wiki/CWSAP

When I try the following example :

Code: [Select]
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 :

Code: [Select]
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.

jthefreak

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

cruj


davemaster

Password can not be shorter that 8 chars.
Great,

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

Isaranu

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

Code: [Select]
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 :

Code: [Select]
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 :

https://github.com/espressif/esp8266_at/wiki/CWSAP

When I try the following example :

Code: [Select]
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 :

Code: [Select]
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.
https://www.youtube.com/watch?v=mpwbigR_R7A

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. :)
My Project : www.arduino-makeriverse.blogspot.com

pert

Password can not be shorter that 8 chars.
PWD = Use only character not exceed 8 characters.
There's some contradictory information here. Which is it, >=8 characters or <=8 characters?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy