|
@@ -31,9 +31,9 @@ CREATE TABLE IF NOT EXISTS var_value (
|
31
|
31
|
PRIMARY KEY(type, address, time)
|
32
|
32
|
);
|
33
|
33
|
|
34
|
|
-INSERT INTO var_type (slabel, label, type) VALUES (
|
35
|
|
- 'A', 'Analog', 'float');
|
36
|
|
-INSERT INTO var_type (slabel, label, type) VALUES (
|
37
|
|
- 'I', 'Integer', 'int');
|
38
|
|
-INSERT INTO var_type (slabel, label, type) VALUES (
|
39
|
|
- 'D', 'Digital', 'boolean');
|
|
34
|
+INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
|
|
35
|
+ 'A', 'Analog', 'float', 1, 500);
|
|
36
|
+INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
|
|
37
|
+ 'I', 'Integer', 'int', 5002, 6252);
|
|
38
|
+INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
|
|
39
|
+ 'D', 'Digital', 'boolean', 1, 1000);
|