JSON Payloads
YuDash LYNX and other IoT Devices support the following JSON payload formats of payload. Each format has a unique number (starting with 10).
We explain each JSON format with an example of energy monitoring:
There are three process variables/tags. Voltage, frequency and energy, namely: volt1_in freq_in and kwhr_in
Numerical values (floating points) are read by LYNX for reach variable.
There is a string variable status_var1 which is used to capture device status information. This is an optional variable in which LYNX sends in device information at bootup and periodically.
The variable names for device information are treated just like process variables.
The timestamp variables are processed as per the given JSON format. It is a purely optional parameter and should only be used when back-fill feature is required.
LYNX has two user provided input strings (Payload Gen Key#1 and Payload Gen Key#2). We will call them
plKey1
andplKey2
.
JSON PAYLOADS
JSON_FORMAT_10
This is the simplest JSON format with key value pairs.
plKey1 and plKey2 are not used.
Sample payload format
Status Variable Payload
JSON_FORMAT_11
This is a two level JSON format with variable names as main key.
plKey1 is not used. plKey2 is used. This is set as "value" in the example below.
Data payload format
JSON_FORMAT_12
This is a JSON array with data points for each variables.
plKey1 is used (set to field in example). plKey2 is used and set as value in the example below.
Data payload format
Status Variable Payload
JSON_FORMAT_13
This is a two level JSON structure.
plKey1 is used (set to data in example). plKey2 is not used.
Data Payload
Status Variable Payload
JSON_FORMAT_14 and JSON_FORMAT_15
These are proprietary JSON formats for Indian State Pollution control Board.
JSON_FORMAT_16
Proprietary JSON payload for Indian OEM customer.
JSON_FORMAT_17 and JSON_FORMAT_18
Generic two level JSON payloads with option of array (FORMAT_17) and json (FORMAT_18).
TimeStamp Formats
LYNX supports the following timestamp formats to send to cloud server when timestamp has been enabled.
The time displayed on YuDash LYNX is local time (based on time-zone provided). In most cases, it is advised to store/send UTC time stamps.
UTC Time Stamp Formats
Local Time Stamp Formats
The time stamps are sent along with Time Stamp Key (tsKey). They are grouped in within json format depending on JSON_FORMAT_. The timestamp key is set as timestamp in all the examples. Typically, based on server requirement timestamp, ts or time keywords are used.
JSON_FORMAT_10, TS_50
Last updated