-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
All read() methods mixing incomming data from multiple connection to one stream #15
Comments
You can subclass the ESP8266 class to achieve what you want or create a wrapper or use @lasselukkari's ESP8266Server class. I don't see why you absolutely want the Stream interface to be bound to one id in particular in the low level library. At the low level we see only one Stream: the Serial one so ESP8266 reflects that. |
I only want to avoid mix two incoming requests and have possibility to reply to booth of them. @lasselukkari's ESP8266Server class has this some problem, it doesn't solve this problem. |
Why no add a readPacket method that reads exactly one IPD block? |
I already wrote, that new method like availablePacket() should be enough. |
ESP8266 support multiple incoming connection which is recognizable by "id" in "+IPD,id,length" string.
Problem is that main class directly import Stream interface which is designed handle only one stream.
Related discussion on fix proposal: #14
#14 (comment)
The text was updated successfully, but these errors were encountered: