[db] set default values for var_types addresses
This commit is contained in:
parent
f67d0bece3
commit
8e917d4892
1 changed files with 6 additions and 6 deletions
|
|
@ -31,9 +31,9 @@ CREATE TABLE IF NOT EXISTS var_value (
|
|||
PRIMARY KEY(type, address, time)
|
||||
);
|
||||
|
||||
INSERT INTO var_type (slabel, label, type) VALUES (
|
||||
'A', 'Analog', 'float');
|
||||
INSERT INTO var_type (slabel, label, type) VALUES (
|
||||
'I', 'Integer', 'int');
|
||||
INSERT INTO var_type (slabel, label, type) VALUES (
|
||||
'D', 'Digital', 'boolean');
|
||||
INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
|
||||
'A', 'Analog', 'float', 1, 500);
|
||||
INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
|
||||
'I', 'Integer', 'int', 5002, 6252);
|
||||
INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
|
||||
'D', 'Digital', 'boolean', 1, 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue