Web App with random
📌
For the demonstration, the example table should be created in advance.
CREATE TAG TABLE IF NOT EXISTS EXAMPLE (
NAME VARCHAR(20) PRIMARY KEY,
TIME DATETIME BASETIME,
VALUE DOUBLE SUMMARIZED
);This example generates random data per second and refresh chart automatically.

- line 11, When the “start” button is clicked, it start timer and write data into
EXAMPLEtable. - line 13, The payload is CSV format.
- line 37, The TQL combined
SQL_SELECT()-CHART()generates a chart.
| |
Last updated on