Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
cfaa8fb7
Commit
cfaa8fb7
authored
Feb 07, 2022
by
Eric Duminil
Browse files
Lorawan h -> cpp
parent
89ecb4a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/lorawan.cpp
View file @
cfaa8fb7
...
...
@@ -5,7 +5,10 @@
#include
"led_effects.h"
#include
"sensor_console.h"
#include
"util.h"
#include
<SPI.h>
#include
<hal/hal.h>
#include
<arduino_lmic_hal_boards.h>
namespace
config
{
// Values should be defined in config.h
...
...
ampel-firmware/lorawan.h
View file @
cfaa8fb7
...
...
@@ -4,12 +4,11 @@
#include
"config.h"
#if defined(AMPEL_LORAWAN) && defined(ESP32)
#include
<stdint.h>
// For uint32_t & uint16_t
// 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.
#include
<lmic.h>
#include
<hal/hal.h>
#include
<arduino_lmic_hal_boards.h>
namespace
config
{
extern
uint16_t
lorawan_sending_interval
;
// [s]
...
...
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