Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP in dual mode, AP and station #2441

Closed
ranjit84 opened this issue Aug 26, 2016 · 3 comments
Closed

ESP in dual mode, AP and station #2441

ranjit84 opened this issue Aug 26, 2016 · 3 comments

Comments

@ranjit84
Copy link

ranjit84 commented Aug 26, 2016

I have configured my esp in dual mode and it works fine.
I have few queries -

  1. I can check a gpio pin and use single mode at a time. either station or AP, right now its in dual mode and I face one problem, sometimes my web html page are not served whole, they are broken. I have used SPIFFS liberary to store web pages. Seems like some memeory issue.
    So my quesiotn is is this really a memory problem because thre are lot of checks and variables involved int the loop() method.
    Having one mode can be also one option, like i can cofigure the mode by check gpio pin status, whether in AP mode or STation mode. Is this better approach.
  2. In dual mode, can I set static IP for my AP and let system have dynamic IP for station mode, what is the correct way of giving static IP in Dual mode for AP

thanks

@WereCatf
Copy link
Contributor

About HTML-pages not being served whole: I've seen several people complaining about similar issues lately and I think it's a bug with the ESP8266-core itself, not in your code. Have you tried an older version of the core, like e.g. 2.2.0, to see if it works any better?

@devyte
Copy link
Collaborator

devyte commented Oct 14, 2017

@ranjit84 The ESP has a single radio, shared between STA and AP. In dual mode, the SoftAP must be set to the same channel as the STA that you connect to. If you don't, once the STA connects, the SoftAP will be dragged along, and you'll lose connectivity.
In addition, there are some issues with serving webpages with ESP8266WebServer, especially when the webpages have embedded elements. In such cases, modern browsers tend to get creative and try to retrieve concurrenly.
Assuming the issue is still relevant, please try:

@devyte
Copy link
Collaborator

devyte commented Jan 8, 2018

Closing due to lack of feedback in over 2 months, and age.

@devyte devyte closed this as completed Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants