… My network is isolated for now, I wanted to use the slider demo with the servo but that seems to rely on external access. Can it be done without this?
client.println(“<script src=\”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\”></script>”);
Thanks
Derek
Hello Derek,
Unfortunately I don’t have any code on that exact subject, but yes, you can remove the Jquery code. Please take a look at lines 126 to 149: https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/Project_Robot_AP/Project_Robot_AP.ino
That web page also has a slider that control the motor speed, it’s from this Unit: https://rntlab.com/extra-access-point-ap-for-wi-fi-car-robot/
As you can see in that web page, you don’t need JQUERY. If you apply the same concept to the servo, you can control it without that external Jquery source.
I hope that works for you and let me know if you need further help.
Regards,
Rui
Specially take a look at lines 142 to 147: https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/Project_Robot_AP/Project_Robot_AP.ino
That section is responsible for displaying the slider (input of type range) and it loads the script necessary to send the servo values without having to refresh the web page.