@ John -
Thank you for explanation!
Can anybody advice me how to handle multiple simultaneous TCP requests on WIFI RS21 module please?
Now i use a static IP address and port “80” to handle requests from http client. Here is a code of web server that is set up on Raptor:
WebEvent command = WebServer.SetupWebEvent("command");
command.WebEventReceived += new WebEvent.ReceivedWebEventHandler(command_WebEventReceived);
WebServer.StartLocalServer("168.192.0.15", 80);
void command_WebEventReceived(string path, WebServer.HttpMethod method, Responder responder)
{
responder.Respond("command successful");
}
What if i want to send another requests to webserver during the picture response is active on port 80?
Should i set up another WebServer on different port:
WebServer.StartLocalServer("168.192.0.15", 85);
And after two servers will be set up i need to send an http requests with port number specified? Or there is another more elegant solution?:
@ Alex Bilityuk - I am not exactly sure what you are asking? But, you shuold never need need multiple web servers on a device. one server will handle multiple commands and “simultaneous” users.
@ Mike -
Thank you for the explanation.