Is it possible to switch between SoftAP and WiFi client?
Is it possible to switch between SoftAP and WiFi client?
Postby helpme » Wed May 20, 2015 1:34 pm
I would like to have a ESP8266 firmware that allows the module to switch between SoftAP and WiFi client. On receiving a command like AT+SoftAP, ESP8266 module becomes an Access Point so that other WiFi clients can connect to it and send configuration settings.
On receiving a command like AT+Client, ESP8266 module becomes a normal WiFi client that can connect to an Access Point. Is this possible with ESP8266?
Thank you.
On receiving a command like AT+Client, ESP8266 module becomes a normal WiFi client that can connect to an Access Point. Is this possible with ESP8266?
Thank you.
Re: Is it possible to switch between SoftAP and WiFi client?
Postby ESP_Faye » Wed May 20, 2015 4:05 pm
Hi,
AT+CWMODE=1 // set ESP8266 in station mode , ESP8266 module becomes a normal WiFi client that can connect to an Access Point.
AT+CWMODE=2 // set ESP8266 in softAP mode , ESP8266 module becomes an Access Point so that other WiFi clients can connect to it
AT+CWMODE=3 // set ESP8266 in softAP+station mode , ESP8266 can be a station connected to AP ,meanwhile, ESP8266 can be an AP so that other WiFi clients can connect to it
More AT commands in document "4A-ESP8266__AT Instruction Set" http://bbs.espressif.com/viewtopic.php?f=5&t=398
Thanks for your interest in ESP8266 !
AT+CWMODE=1 // set ESP8266 in station mode , ESP8266 module becomes a normal WiFi client that can connect to an Access Point.
AT+CWMODE=2 // set ESP8266 in softAP mode , ESP8266 module becomes an Access Point so that other WiFi clients can connect to it
AT+CWMODE=3 // set ESP8266 in softAP+station mode , ESP8266 can be a station connected to AP ,meanwhile, ESP8266 can be an AP so that other WiFi clients can connect to it
More AT commands in document "4A-ESP8266__AT Instruction Set" http://bbs.espressif.com/viewtopic.php?f=5&t=398
Thanks for your interest in ESP8266 !
Re: Is it possible to switch between SoftAP and WiFi client?
Postby helpme » Thu May 21, 2015 5:01 pm
Hi Espressif_Faye,
This is what I would like to do. Send AT+CWMODE=3 to set ESP8266 in softAP+station mode. Then, a WiFi client will connect to the ESP8266 softAP and send a list of SSID/passwords to ESP8266. After receiving this list, ESP8266 will now act as WiFi client and connect to nearby AP based on the list of matching SSID/passwords.
Can this be done using the AT command firmware? Or do I have to write some custom firmware on ESP8266 myself? If yes, what development tools like the compiler is required? How much do they cost? Hopefully, my objective can be achieved using ESP8266.
Thank you.
This is what I would like to do. Send AT+CWMODE=3 to set ESP8266 in softAP+station mode. Then, a WiFi client will connect to the ESP8266 softAP and send a list of SSID/passwords to ESP8266. After receiving this list, ESP8266 will now act as WiFi client and connect to nearby AP based on the list of matching SSID/passwords.
Can this be done using the AT command firmware? Or do I have to write some custom firmware on ESP8266 myself? If yes, what development tools like the compiler is required? How much do they cost? Hopefully, my objective can be achieved using ESP8266.
Thank you.
Re: Is it possible to switch between SoftAP and WiFi client?
Postby Arend » Tue Jan 12, 2016 8:29 pm
Hello helpme,
Did you get this solved? I have the same problem. I want to set the module in AP mode, then make a wifi connection, login to a website on the module, configure the local WIFI network SSID and password, reboot the module and then let the wifi module connect to the local WIFI network. A similar procedure is using the smartconfig, but a user does not always have an android or IOS phone. Setting WIFI network SSID and password in a webbrowser will work on any system.
Did you get this solved? I have the same problem. I want to set the module in AP mode, then make a wifi connection, login to a website on the module, configure the local WIFI network SSID and password, reboot the module and then let the wifi module connect to the local WIFI network. A similar procedure is using the smartconfig, but a user does not always have an android or IOS phone. Setting WIFI network SSID and password in a webbrowser will work on any system.
Who is online
Users browsing this forum: No registered users and 19 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.