Get value of range slider into Arduino code
Posted: Sat Jul 08, 2017 1:04 pm
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
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