Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
1722ca32
Commit
1722ca32
authored
Dec 25, 2020
by
Eric Duminil
Browse files
Project compiles with both ESP32 & ESP8266
parent
a77645b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
ampel-firmware.ino
View file @
1722ca32
...
...
@@ -102,7 +102,7 @@ void setup() {
csv_writer
::
initialize
();
#ifdef
LORAWAN
#if
def
ined(
LORAWAN
) && defined(ESP32)
lorawan
::
initialize
();
#endif
}
...
...
@@ -112,7 +112,7 @@ void setup() {
*****************************************************************/
void
loop
()
{
#ifdef
LORAWAN
#if
def
ined(
LORAWAN
) && defined(ESP32)
//LMIC Library seems to be very sensitive to timing issues, so run it first.
lorawan
::
process
();
...
...
co2_sensor.cpp
View file @
1722ca32
...
...
@@ -183,7 +183,7 @@ namespace sensor {
mqtt
::
publishIfTimeHasCome
(
timestamp
,
co2
,
temperature
,
humidity
);
#endif
#ifdef
LORAWAN
#if
def
ined(
LORAWAN
) && defined(ESP32)
lorawan
::
preparePayloadIfTimehasCome
();
#endif
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment