Chat freely about anything...

User avatar
By chandupneja
#90437 Hi, my requirement is to use ESP8266 for fetching data from a website. this ESP8266 has to work on different physical loactions. Each location will have a different WI-FI SSID and password for connecting to internet.

therefore there is a requirement to change the WI-FI SSID and password using a webserver based client. user can change anytime the id and password from the webserver client.

I have decided to use the ESP8266 in AP and station mode together. so that both webserver and HTTP can work together.
individually both the codes work but when I combine them together WI-FI connection (AP mode) gets unstable and some time it opens the web page for changing the SSID and password and some times not. basically WI-FI connections gets disconnected.
has any used this type of application? if yes any hints or reference code can be provided?
User avatar
By davydnorris
#90453 I have done this a lot, using the NonOS SDK, and have had no problems.

The one thing to bear in mind is that both the AP and Station must operate on the same Wifi channel, so if you change channels on the AP it will request a channel hop on the station, and vice versa.

This means that if the new SSID you're connecting to is on a different channel, it'll also change the AP's channel to match when you connect. This might be what you're seeing, and may be why it appears inconsistent, because it will depend on the AP you're connecting to