Is it possible to switch between SoftAP and WiFi client?

helpme
Posts: 8
Joined: Wed May 20, 2015 11:26 am

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.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

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 !

helpme
Posts: 8
Joined: Wed May 20, 2015 11:26 am

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.

Arend
Posts: 2
Joined: Tue Jan 12, 2016 8:23 pm

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.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Is it possible to switch between SoftAP and WiFi client?

Postby ESP_Faye » Wed Jan 13, 2016 2:15 pm

Hi,

Sorry that AT firmware does not support it by default, you need to program it by yourselves.

Who is online

Users browsing this forum: No registered users and 19 guests