So far, when we are doing client mode from MCU via AT, we are master and we control the flow (connect, etc).
What we don't have control is when device has enabled server mode.
I believe, current implementation is that server mode works as follow:
1. enable one connection to listen on desired port
2. when connection is active, create new connection and listen on the same port
3. when second connecton is active, create third connection and listen on same port
So that we always have 1 connection in listening mode.
But LwIP allows us to only listen on single connection on more of them.
I believe, we should be somehow able to set which connection we want enabled for server mode.
For example AT+CIPSERVERCONN=0,1,2 could mean that connections 0,1,2 are available for server mode and if we do AT+CIPSTART=2,... we got an error.
Or maybe set connections like AT+CIPSERVERCONN=1,0 which means enable connection 0 for server mode and AT+CIPSERVERCONN=0,0 which means disable connection 0 for server.
In this case we are able to control device even when in server mode. If we only enable single connection for server, our server will work slower but for memory constrain devices, this shouldn't be a problem.
I would do this on my own, but I don't have access to AT core to modify how it works.
I'm expecting at least an answer from you.
Set connections available for server
Re: Set connections available for server
Postby Her Mary » Mon Jul 17, 2017 10:16 am
same issue? https://github.com/espressif/esp32-at/issues/28
Re: Set connections available for server
Postby tilz0R » Mon Jul 17, 2017 10:17 am
Yes.
Later I posted it also for esp8266.
Later I posted it also for esp8266.
Who is online
Users browsing this forum: No registered users and 163 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.