Giter Club home page Giter Club logo

Comments (5)

luc-github avatar luc-github commented on August 13, 2024

WIFI_AP_STA is normaly used for being in AP mode and scan others AP
Nothing work well in this mixed mode, I can be wrong as I do not use this mode

Anyway because answer must go to same direction as query, you need to detect from which IP the query come:
if come from AP connection the answer must be AP IP
if come from STA connection the answer must be the STA IP

Now if you says this code work - I trust you

if (WiFi.getMode() == WIFI_AP_STA) {	// added workaround if (tcpip_adapter_get_ip_info(TCPIP_ADAPTER_IF_STA, &ip)) { return IPAddress(); } }

but may I know why you use this mixed mode? and for what application ?
Is webserver properly working on both mode AP (AP_STA) and STA (AP_STA)?

from esp32ssdp.

MiTron66 avatar MiTron66 commented on August 13, 2024

My Intention is to have access to the the webserver via two ways STA if I am at home having my router available, AP if there is no connection to the router possible. A parallel connection is not intended.
In both modes the webserver is working fine.

from esp32ssdp.

luc-github avatar luc-github commented on August 13, 2024

That is common usage to do and that perfectly make sense - but how do you end up in mixed mode?
you should be in STA if connection is Ok and AP if no connection, not in AP_STA mode

from esp32ssdp.

stale avatar stale commented on August 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from esp32ssdp.

stale avatar stale commented on August 13, 2024

This stale issue has been automatically closed. Thank you for your contributions.

from esp32ssdp.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.