Comments (5)
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.
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.
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.
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.
This stale issue has been automatically closed. Thank you for your contributions.
from esp32ssdp.
Related Issues (19)
- [BUG] compiler warning - large integer implicitly truncated to unsigned type HOT 3
- SSDP Notworking in AP Mode HOT 3
- [Question]Strange name for library in registry HOT 9
- [BUG] icon list is outside of device tag HOT 5
- [BUG] Prevent std::bad_alloc when udp.parsePacket() is called HOT 13
- [BUG]SSDP randomly crash with esp3dlib HOT 2
- 'tcpip_adapter_ip_info_t' was not declared in this scope HOT 3
- Deprecated schema() HOT 3
- [BUG]Miss Send notify : NTS: ssdp:byebye when stopping ssdp server
- [Question]License HOT 5
- [BUG] SSDP Async dont work in APSTA mode only in STA HOT 5
- [FEATURE REQUEST] Need the ability to add sub elements to <device> HOT 11
- Duplicate Global Scope Enumerations Prevent Compilation HOT 2
- [FEATURE REQUEST] Need ability to set uuid HOT 6
- [FEATURE REQUEST] Need ability to change SERVER product name and version in packet. HOT 6
- [FEATURE REQUEST] need ability to set modelDescription HOT 10
- [BUG] M-Search reply ST header does not conform to specification. HOT 5
- [FEATURE REQUEST] Respont to multiple device types or callback? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32ssdp.