6v6gt:
I guess the easiest is to use the arg() method of the ESP8266WebServer class (if you are already using that class - it’s not clear from your code extract)
This parses a standard formatted query string list.
You’ll have to change this line:client.println(" <a href=\"/HourRed/\" onmouseup=\"location.href=this.href+'ColVal='+sliderHourRed.value;return false;\">");to yield a URL part in the format:
/HourRed?ColVal=200Then you can use the sample code here:
ESP8266 Webserver: Getting query parameters - techtutorialsxThere are of course many other ways of doing this.
It is unfortunate for you that your post got caught up in the eternal discussion here about the String class.
Edit:
Incidentally, the arg() method returns a value of type String.
Thank you so much this did exactly what I needed.
And I understand that optimising my code is important and it is good advice to know that Arduino strings may cause memory issues and I appreciate that.
However everything else about that argument went over my head and if I was to choose between a solution that helps me move on with a project and a solution that might be more efficient but is too hard to get my head around that it makes me want to give up on the project altogether. I would chose the former option.