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
0cae2988
Commit
0cae2988
authored
Dec 28, 2020
by
Eric Duminil
Browse files
Arduino IDE can compile even without LMIC library when LORAWAN is disabled
parent
44e04833
Changes
3
Hide whitespace changes
Inline
Side-by-side
config.public.h
View file @
0cae2988
...
...
@@ -12,7 +12,7 @@
# define AMPEL_HTTP // Should HTTP web server be started?
# define AMPEL_MQTT // Should data be sent over MQTT?
# define AMPEL_CSV // Should data be logged as CSV, on the ESP flash memory?
// # define AMPEL_LORAWAN // Should data be sent over LoRaWAN? (Requires ESP32 + LoRa modem)
// # define AMPEL_LORAWAN // Should data be sent over LoRaWAN? (Requires ESP32 + LoRa modem
, and "MCCI LoRaWAN LMIC library"
)
/**
* WIFI
...
...
lorawan.cpp
View file @
0cae2988
#include
"lorawan.h"
#if defined(ESP32)
#if
defined(AMPEL_LORAWAN) &&
defined(ESP32)
namespace
config
{
// Values should be defined in config.h
...
...
lorawan.h
View file @
0cae2988
#ifndef AMPEL_LORAWAN_H_
#define AMPEL_LORAWAN_H_
#if defined(ESP32)
#if
defined(AMPEL_LORAWAN) &&
defined(ESP32)
#include
<Arduino.h>
// Requires "MCCI LoRaWAN LMIC library", which will be automatically used with PlatformIO but should be added in "Arduino IDE".
// Tested successfully with v3.2.0 and connected to a thethingsnetwork.org app.
...
...
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