G
G
Goparov Ruslan2021-01-25 12:28:21
Programming
Goparov Ruslan, 2021-01-25 12:28:21

How to connect the software with a device that works on a third-party server?

There is a fingerprint device that works using the iocontrol server , the device itself is assembled using this example , can I somehow connect my software as a monitoring administrator (having access to add, delete users)?
How can this be arranged? Are there any examples?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NyxDeveloper, 2021-01-25
@NyxDeveloper

API needs to be configured. On the raspberry, add the logic for tracking the reading, what was considered (fingerprint in your case) and make a request to the desired server address. How to handle this on the server is another question, but the essence remains the same, if you want to connect two devices over the network, you need to set up communication between them in the form of some kind of api. You can use python, it sends data in several lines

import requests
r = requests.post("http://your-server-url", data={'your data from rashpbery'})
if r.status_code == 200:
    #    обрабатываем ответ от сервера            
else:
    #    обрабатываем другой код или ошибку с сервера

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question