M
M
mitaichik2018-04-05 23:52:50
Java
mitaichik, 2018-04-05 23:52:50

How to make two-way communication applications?

Hello!
I have a server (Spring), and a bunch of devices (Rasbery PI - there is an application in pure Java). Devices send data to the server, there are no problems with this.
But it is necessary:
​​1. Check whether the device is online or not.
2. Periodically send commands from the server to a specific device (encrypted). How to do this (the option when the device makes a request and checks if there are any commands for it is not suitable)?
XMPP comes to mind (didn't work with it), AMPQ, but I only used it for queues - is it intended for such a task? Is there something special for such tasks?
It should be noted that commands from the server to devices are very rare: from once an hour to once a day.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VoidVolker, 2018-04-06
@VoidVolker

WebSockets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question