File tree 2 files changed +16
-7
lines changed
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,13 @@ Sketch::SketchConfiguration Configuration = []
65
65
66
66
// Prepare IoC
67
67
CentralUnit::RamInfoReader RamInfoReader;
68
- // Logging::SerialLogger Logger{ Configuration.Logger_LogLevel };
69
- Logging::Winc1500TelnetLogger Logger{ Configuration.Logger_LogLevel };
68
+ #if (LOG_LOGGER == LOGGER_SERIAL)
69
+ Logging::SerialLogger Logger{ Configuration.Logger_LogLevel };
70
+ #elif (LOG_LOGGER == LOGGER_TELNET)
71
+ Logging::Winc1500TelnetLogger Logger{ Configuration.Logger_LogLevel };
72
+ #else
73
+ #error Unknown logger
74
+ #endif
70
75
Measurement::MaximumStrategy SlmAggregationStrategy;
71
76
Measurement::MaximumStrategy TemperatureAggregationStrategy;
72
77
Measurement::MaximumStrategy HumidityAggregationStrategy;
Original file line number Diff line number Diff line change 9
9
#define SENSEBOX_AUTH_TOKEN "Authentication token"
10
10
11
11
#define SOUND_SENSOR_ID "ID of sound level meter"
12
- #define TEMP_SENSOR_ID "ID of temperature sensor";
13
- #define REL_HUMIDITY_SENSOR_ID "ID of humidity sensor";
14
- #define PM10_SENSOR_ID "ID of PM10 finedust sensor";
15
- #define PM25_SENSOR_ID "ID of PM2.5 finedust sensor";
12
+ #define TEMP_SENSOR_ID "ID of temperature sensor"
13
+ #define REL_HUMIDITY_SENSOR_ID "ID of humidity sensor"
14
+ #define PM10_SENSOR_ID "ID of PM10 finedust sensor"
15
+ #define PM25_SENSOR_ID "ID of PM2.5 finedust sensor"
16
16
17
17
/* --- Sensebox Peripherals ---- */
18
18
19
19
/* --- Debugging ---- */
20
- #define LOG_LEVEL = LogLevelError;
20
+ #define LOGGER_SERIAL (1)
21
+ #define LOGGER_TELNET (2)
22
+
23
+ #define LOG_LEVEL = LogLevelError
24
+ #define LOG_LOGGER LOGGER_TELNET
You can’t perform that action at this time.
0 commit comments