This forum is slowly withering away and I hope I can still catch someone knowledgeable about this subject. When programming a Socket for the ESP there are so far about two things that are on my radar when I'm coding the Data Received function.
1: Which client sent the data
It seems the Function that receives the data doesn't directly pass a Parameter of which one of the many clients could have sent the data but I am currently Identifying them by their Remote port that way it's unique and when the socket closes I wipe the record from memory.
2: Data can come Fragmented
This was my most recent issue when receiving a file being sent from a web browser.
After keeping these two in mind, it seems my Data receive function should really be Dynamically allocating Buffers one for each client to store their independent data in and when the content length is matched then process the information at that point. Does anyone have any thoughts on how to properly address this workflow?
Who is online
Users browsing this forum: No registered users and 7 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!