Browse Source

Update todo, add config module and update submodules references

Ilja Kartašov 1 month ago
parent
commit
24672363c4
6 changed files with 43 additions and 42 deletions
  1. 1
    1
      cStuff
  2. 1
    1
      sdk
  3. 6
    0
      src/agent.c
  4. 24
    0
      src/config.c
  5. 2
    29
      src/config.h
  6. 9
    11
      todo.txt

+ 1
- 1
cStuff

@@ -1 +1 @@
1
-Subproject commit 93234df78dd500bc1f02c306d1effe6fc5270100
1
+Subproject commit 17ce2c5753c5512f7acf5aac0d15b9587be79b7f

+ 1
- 1
sdk

@@ -1 +1 @@
1
-Subproject commit f43bb30065682b2ea9eeb1395b640cd0abacb9cb
1
+Subproject commit 634744449404cace0d8040e699f61d9b46ef957c

+ 6
- 0
src/agent.c View File

@@ -33,5 +33,11 @@ agent_release(void)
33 33
 int
34 34
 agent_run_cycle(void)
35 35
 {
36
+	int result = 0, rc;
37
+
38
+	if ((rc = surgard_run_cycle())) {
39
+		result = rc;
40
+	}
41
+:
36 42
 	return 1;
37 43
 }

+ 24
- 0
src/config.c View File

@@ -0,0 +1,24 @@
1
+/******************************************************************************
2
+ *
3
+ *                Copyright (c) 2017-2019 by Löwenware Ltd
4
+ *             Please, refer LICENSE file for legal information
5
+ *
6
+ ******************************************************************************/
7
+
8
+/**
9
+ * @file config.c
10
+ * @author Ilja Kartašov <ik@lowenware.com>
11
+ * @brief 
12
+ *
13
+ * @see https://lowenware.com/
14
+ */
15
+
16
+#include <cStuff/config.h>
17
+#include "config.h"
18
+
19
+int
20
+config_read(void)
21
+{
22
+
23
+}
24
+

+ 2
- 29
src/config.h View File

@@ -25,34 +25,7 @@
25 25
 #define CONFIG_LOG_TARGET "output.log"
26 26
 #endif
27 27
 
28
-#ifndef CONFIG_SMTP_SERVER
29
-#define CONFIG_SMTP_SERVER "mx.lowenware.com"
30
-#endif
31
-
32
-#ifndef CONFIG_SMTP_PORT
33
-#define CONFIG_SMTP_PORT 465
34
-#endif
35
-
36
-#ifndef CONFIG_SMTP_USER
37
-#define CONFIG_SMTP_USER "robot@lowenware.com"
38
-#endif
39
-
40
-#ifndef CONFIG_SMTP_PASS
41
-#define CONFIG_SMTP_PASS "3HFzxiQYY9QJ6LN3" /* +){xA8}(mNF43B(~" */
42
-#endif
43
-
44
-#ifndef CONFIG_MAIL_FROM
45
-#define CONFIG_MAIL_FROM CONFIG_SMTP_USER
46
-#endif
47
-
48
-#ifndef CONFIG_MAIL_TO
49
-#define CONFIG_MAIL_TO "ik@lowenware.com"
50
-#endif
51
-
52
-#ifndef CONFIG_MAIL_SUBJECT
53
-#define CONFIG_MAIL_SUBJECT "Feedback from website"
54
-#endif
55
-
56
-
28
+int
29
+config_read(void);
57 30
 
58 31
 #endif /* !CONFIG_H */

+ 9
- 11
todo.txt View File

@@ -1,12 +1,10 @@
1
-Port templight to SDK
2
-Implement authentication UI
3
-Implement authentication modules in SDK
4
-Implement serial surgard receiver
5
-Implement EBS OSM receiver
6
-Define device file format
7
-Implement device logs
8
-Implement ARC journal
9
-Implement device cards
10
-Implement routes
1
+Agent configuration manager
2
+Surgard module
3
+Authentication
4
+Monitoring module
5
+Editor module
6
+EBS OSM module
11 7
 x Create project repository
12
-
8
+x Port templight to SDK
9
+x Implement authentication modules in SDK
10
+x Configuration parser

Loading…
Cancel
Save