-->
Page 1 of 1

Get value of range slider into Arduino code

PostPosted: Sat Jul 08, 2017 1:04 pm
by JohnFormant
Hi,

I know similar things have been asked before but I just can't seem to figure this one out.

I have a html page with a slider on embedded into my Arduino code on my ESP8266. I want to send the slider's value to a variable in the Arduino code whenever it is changed but I'm not really sure how to go about it.

I've already got code that uses server.arg() to pull in variables from query parameters in the URL, is there maybe a way to have my slider send a query when it is changed? or is there a better way to do this? I just have no clue when it comes to anything JavaScript!

Any advice?

Thanks,
John

Re: Get value of range slider into Arduino code

PostPosted: Mon Jul 10, 2017 1:46 pm
by gbafamily1
The following example demonstrates using 3 HTML sliders to control an RGB LED.

https://github.com/Links2004/arduinoWeb ... ontrol.ino