Added documentation. Added keep-alive cheking to thermo_sensor

This commit is contained in:
ftc
2021-04-13 21:48:00 +03:00
parent 2d0a529ec3
commit c44ec14a9d
2 changed files with 65 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
System of monitoring and controlling heating.
Modules (called units) send their data via UDP.
Each datagram contains JSON object of following form:
{
"id": "<ID>",
"ip": "<IP>",
"v1": "123",
...
}
Where ID is unit's identifier (MAC address usually),
IP is unit's current IP address (for server to be able
to contact it).
Other values in object are names and values of sensors
available on the unit.
Server could send datagram with some commands to unit.
For simplicity datagram is simple string with command and
optional arguments, everything separated with character 0x01.
Possible commands are:
1. ping - no arguments. Informs unit that server is still alive
and able to communicate