12-18-2015 05:48 PM
Thanks Mr. Jeff·Þ·Bohrer, I use Arduino and Labview by WIFI with Arduino, I send a data of distance to a IP address and I send a data of picture to other IP Address. By this reason I want to use two blocks of HTTPClients and make requests at the same time and that responds independently of the other.
12-21-2015 03:19 AM - edited 12-21-2015 03:20 AM
Ok, I agree that at the hardware level, you can only make one request at a time. However, the TCP/Networking stack allows for multiple connections to be opened/maintained at the same time (hundreds of connections?) - and when making a HTTP request there is a period of time while the network is inactive waiting for the server to respond so you can use that time to make another request. A lot of web servers can also handle multiple simultaneous incoming connections.
I think in this case the boolean coming into the while loop comes from the output of the bottom GET request which makes them run one after another. You need to remove this dependency (the boolean wire coming in at the bottom). You could also consider having your loops run in parallel, rather than nesting them one inside the other.
Also, according to the help files, you don't need to create/close the client handle unless you need custom headers or login credentials for the request.
12-23-2015 03:36 PM
thanks but how I can make multiple GET requests to the TCP / IP protocol?
12-23-2015 05:02 PM
@DanyckV wrote:
thanks but how I can make multiple GET requests to the TCP / IP protocol?
run them in parallel.