Ps
Settings Packet
Added on v1.0.0
TCP
HTTP
Defines the settings packet of the Layrz Protocol, which is used to send configuration settings from the device to the server.
Example Usage
<Ps>UNIX;EXTRA+ARGS;CRC16</Ps>
Parameter | Type | Description | Example |
---|---|---|---|
UNIX | float | UNIX timestamps defined in seconds of the message | 1753306994 |
EXTRA+ARGS | EXTRA+ARGS | The configuration that you need to send to the server | N/A |
CRC16 | integer | Cyclic Redundancy Check for error checking. | 1234 |
Extra Arguments EXTRA+ARGS
PARAMETER1:VALUE1,PARAMETER2:VALUE2,PARAMETER3:VALUE3,PARAMETER4:VALUE4,...
Parameter | Type | Description |
---|---|---|
PARAMETER1,PARAMETER2,PARAMETER3,PARAMETER4 | string | Name of the parameter to send |
VALUE1,VALUE2,VALUE3,VALUE4 | any | Value of the parameter to send |
Example
report.frequency:60,device.name:My Device,fota.enabled:true,mac.address:00_11_22_33_44_55