W
W
WalkersRei2019-11-22 00:22:01
Arduino
WalkersRei, 2019-11-22 00:22:01

How to pass variables a and b received by JS from website to Arduino?

The site sends a certain number, let's say 15, it must send arudino the value 1 and 5, that is, the numbers are separate, how best to implement this through a POST request, the arduino is connected to the computer via USB

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vanyamba-electronics, 2019-11-22
@vanyamba-electronics

The site is a server. He doesn't send. It only responds to customer requests.
The Arduino client sends a request to the site, and receives a response from the site.

W
WalkersRei, 2019-11-22
@WalkersRei

And in general, is it really possible, if somehow by creating a web server based on arduino, or can you somehow do without it?

K
Konstantin Zaitsev, 2019-11-22
@KonstantineZ

...arduino connected to computer via USB

therefore, the computer makes a request to the site, the computer will also receive the answer (more precisely, the program on the computer). Most likely, you will have to write the program yourself, so the easiest way is to entrust the analysis of the answer to this program on the computer side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question