R
R
Rishat Sultanov2017-05-10 06:40:36
Arduino
Rishat Sultanov, 2017-05-10 06:40:36

How to properly design data acquisition?

Good afternoon gentlemen :)
I'm going to send an Arduino GET request with data from the sensor.
Keep the session constant if the arduino sends data.
Actually, the question is, how would you do the verification so that no one other than my arduino could send requests to this address :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Wolf, 2017-05-10
@rishatss

Very simply, we add some secret code (word, password, token) to the get request as another parameter and check it on the server.
If a little more complicated, you can create some formula, approximately according to the same principle as keychain generators (usually numbers) for authorization work. Correspondingly, the resulting code is also transmitted with the get parameter.
You can check the IP address from which the request came (although this is not the most reliable method).
You can use cookies for this.
You can add HTTP(S) authorization.
You can forward an HTTP connection through SSH or VPN or something else, and then no one (outsiders) will physically have access to the server.
You can do some checks (including authorization, which I'm talking about above) at the HTTP server level.
And many other ways...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question