webdyn.com
V2.0 subject to changes | Webdyn © by Flexitron Group
69
Example of an alarm file converted to JSON:
{
“uid”: “WE_1234”,
“source”: “alarm”,
“TS”: 1560068897,
“frameCount”: 2,
“alarm”: {
“type”: “temperature”,
“value”: 45
},
“crc”: 0
}
5.5 ACK Acknowledgements
ACK acknowledgements are uploaded to the “/ALARM” directory on the FTP server as BSON format files.
The acknowledgement file name format is: <uid>-<timestamp>-ack.bson
Where:
•
<uid>: Hub identifier.
• <timestamp>: Number of seconds elapsed since January 1st, 1970 at midnight UTC precisely.
Example: 123456-1591083697-ack.bson
Acknowledgements are sent following a command received by the hub. The acknowledgement file
consists of the following elements:
PARAMETERS
DESCRIPTION
uid
Hub identifier
source
Source that triggered the file upload (ftp, usb, ...)
ts
File creation timestamp (Number of seconds elapsed since January
1st , 1970 at midnight UTC precisely)
ack
Command acknowledgement