MySensors Library & Examples  2.3.2-62-ge298769
config.h
1 /*
2  * The MySensors Arduino library handles the wireless radio link and protocol
3  * between your home built sensors/actuators and HA controller of choice.
4  * The sensors forms a self healing radio network with optional repeaters. Each
5  * repeater and gateway builds a routing tables in EEPROM which keeps track of the
6  * network topology allowing messages to be routed to nodes.
7  *
8  * Created by Henrik Ekblad <[email protected]>
9  * Copyright (C) 2013-2022 Sensnology AB
10  * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
11  *
12  * Documentation: http://www.mysensors.org
13  * Support Forum: http://forum.mysensors.org
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * version 2 as published by the Free Software Foundation.
18  */
19 
20 #ifndef CONFIG_H
21 #define CONFIG_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
30 struct config {
31  int verbose;
32  int log_file;
33  char *log_filepath;
34  int log_pipe;
35  char *log_pipe_file;
36  int syslog;
37  char *eeprom_file;
38  int eeprom_size;
39  char *soft_hmac_key;
40  char *soft_serial_key;
41  char *aes_key;
42 };
43 
44 extern struct config conf;
45 
46 int config_parse(const char *config_file);
47 void config_cleanup(void);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif
config
Config file.
Definition: config.h:30