waldemar.podgorski wrote: See my post above. Client transfers data and receives commands from Server:
http://silesia-eco.wroclaw.pl/EcoHome/Board
So this is the data that controls the relay. Unfortunately, the server will not send them to the client because it cannot see them, so the client has to check them himself.
waldemar.podgorski wrote: By the way, returning to Kapera IP - how is this resolved?
Is the webcam stream on server hipcam.org all the time?
Certainly not. The camera is logged into the server (with the login and password entered) and is waiting for "orders". When connecting the client to the server (you also need to enter the login and password), the server sends a stream request to the camera. The camera sends it to the server and the client receives it from the server.
Something like chat on gadu-gadu, messenger, etc. All data "flies" through the server.
waldemar.podgorski wrote: The solution could be to increase the frequency of the Client's contact with the Server, but this solution does not seem optimal to me.
If there is not much data, the server can be queried more often.
The email client works the same. It checks the contents of the inbox every few minutes, and not like SMSs on the phone where you get it immediately (the phone must be constantly registered in the network anyway).