For this project, I am not connected to the internet. The webpage is hosted on my Arduino Uno's Ethernet Shield and it's SD card.
Is there a way to send a Javascript variable, which contains a string, to my Arduino?
For this project, I am not connected to the internet. The webpage is hosted on my Arduino Uno's Ethernet Shield and it's SD card.
Is there a way to send a Javascript variable, which contains a string, to my Arduino?
Clients can send character strings to servers. What have you tried so far?
zoomkat - I would be very interested in hearing a solution to this topic as this is exactly what I am trying to do also. I am trying to host a simple web server on my arduino ethernet, and all it has is a text box input box, and a submit button. I have written html form and javascript in the arduino code to take the text and assign it to a variable. I am trying to pass the javascript variable (i.e. string) to the arduino code so I can use the arduino to turn pins on or off. Any point in the right direction would be much appreciated.
I am trying to pass the javascript variable (i.e. string) to the arduino code so I can use the arduino to turn pins on or off.
The javascript I've seen is normally contained in the web page source code with the data generated passed to the server via a GET request. Do you have the html code that you are working with?