The problem using client.println("GET /"+UploadData+" HTTP/1.1\r\nConnection: close\r\n\r\n");

This is not in the correct format for a HTTP request.

  1. The GET URL does not contain the the host.
  2. After you do a Conection: clone\r\n\r\n you try to send more HTTP headers (Host:), but with the double \r\n you’ve already closed ended the HTTP request
  3. After that there’s invalid C++ code client.println F("Connection: close"); should not compile since there are missing ( ) around the argument.

The request should look like e.g.

GET /slider1?value=100 HTTP/1.1
Host: 192.168.1.210
Connection: close

Try and adapt the code for that.