Browse Source

Update todo, add config module and update submodules references

master
Ilja Kartašov 2 years 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 @@
Subproject commit 93234df78dd500bc1f02c306d1effe6fc5270100
Subproject commit 17ce2c5753c5512f7acf5aac0d15b9587be79b7f

+ 1
- 1
sdk

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

+ 6
- 0
src/agent.c View File

@@ -33,5 +33,11 @@ agent_release(void)
int
agent_run_cycle(void)
{
int result = 0, rc;

if ((rc = surgard_run_cycle())) {
result = rc;
}
:
return 1;
}

+ 24
- 0
src/config.c View File

@@ -0,0 +1,24 @@
/******************************************************************************
*
* Copyright (c) 2017-2019 by Löwenware Ltd
* Please, refer LICENSE file for legal information
*
******************************************************************************/

/**
* @file config.c
* @author Ilja Kartašov <ik@lowenware.com>
* @brief
*
* @see https://lowenware.com/
*/

#include <cStuff/config.h>
#include "config.h"

int
config_read(void)
{

}


+ 2
- 29
src/config.h View File

@@ -25,34 +25,7 @@
#define CONFIG_LOG_TARGET "output.log"
#endif

#ifndef CONFIG_SMTP_SERVER
#define CONFIG_SMTP_SERVER "mx.lowenware.com"
#endif

#ifndef CONFIG_SMTP_PORT
#define CONFIG_SMTP_PORT 465
#endif

#ifndef CONFIG_SMTP_USER
#define CONFIG_SMTP_USER "robot@lowenware.com"
#endif

#ifndef CONFIG_SMTP_PASS
#define CONFIG_SMTP_PASS "3HFzxiQYY9QJ6LN3" /* +){xA8}(mNF43B(~" */
#endif

#ifndef CONFIG_MAIL_FROM
#define CONFIG_MAIL_FROM CONFIG_SMTP_USER
#endif

#ifndef CONFIG_MAIL_TO
#define CONFIG_MAIL_TO "ik@lowenware.com"
#endif

#ifndef CONFIG_MAIL_SUBJECT
#define CONFIG_MAIL_SUBJECT "Feedback from website"
#endif


int
config_read(void);

#endif /* !CONFIG_H */

+ 9
- 11
todo.txt View File

@@ -1,12 +1,10 @@
Port templight to SDK
Implement authentication UI
Implement authentication modules in SDK
Implement serial surgard receiver
Implement EBS OSM receiver
Define device file format
Implement device logs
Implement ARC journal
Implement device cards
Implement routes
Agent configuration manager
Surgard module
Authentication
Monitoring module
Editor module
EBS OSM module
x Create project repository

x Port templight to SDK
x Implement authentication modules in SDK
x Configuration parser

Loading…
Cancel
Save