Browse Source

[db] set default values for var_types addresses

Maxime Alves LIRMM@home 3 years ago
parent
commit
8e917d4892
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      db/pyheatpump.sql

+ 6
- 6
db/pyheatpump.sql View File

@@ -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);

Loading…
Cancel
Save