I would like to activate more ESP8266 to softAP mode at once. I found out, only the first activated softAP ESP8266 can be visible in a wirelless connection list. The others get error during switching to SoftAP mode. Maybe they detect the 192.168.4.1 IP address is already occupied. What is the best way to avoid it? I thought I can try to increase the IP address in some range e.g. from 192.168.4.1 to 192.168.104.1 and try to switch to SoftAP mode until get no error for each device.
Although I can see all the ESP in SoftAP mode in the Wi-Fi Network Connection List in my laptop, it's not possible to connect all of them. Sometimes incorrect password is reported, sometimes I can connect only one of them. Now I test 6 ESPs:
- each ESP has unique SSID, unique password, unique Wi-Fi channel (I use 2, 4, 6, 8, 10, 12)
- I have tried different encryptions, multiple connection enabled/disabled, server enabled/disabled
Results:one ESP in SoftAP mode is no problem. The more units the greater the problem to connect each of them.
In my application, more people in the same area could change to SoftAP mode and try to connect to their ESP. How to solve this problem ?
1) wi-fi CHANNEL= 1
2) AT+CWMODE_CUR=2 (softAP mode)
3) If automatic reset caused by ESP module is captured within two seconds => CHANNEL++, AT+CWMODE_CUR=3, AT+CWSAP_CUR="SSID","PSWD","CHANNEL","3"
else CHANNEL is OK
Do you have any better solution than waiting for automatic ESP reset in case the channel is occupied ?
Who is online
Users browsing this forum: No registered users and 2 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!