diff --git a/platformio.ini b/platformio.ini index 0e3d4d19..4678eda7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,8 +11,8 @@ ; ---> SELECT TARGET PLATFORM HERE! <--- [platformio] env_default = heltec_wifi_lora_32 -;env_default = ttgov2 ;env_default = ttgov1 +;env_default = ttgov2 ;env_default = lopy ;env_default = lopy4 diff --git a/src/blecount.cpp b/src/blecount.cpp index a2466c56..6ee2fc00 100644 --- a/src/blecount.cpp +++ b/src/blecount.cpp @@ -1,15 +1,10 @@ -// Log Level magic -#include "main.h" - // not using this seems to break U8X8LIB -#include - -// Local logging tag -static const char *TAG = "blecount"; +//#include // Basic Config +#include "main.h" #include "globals.h" -#include "loraconf.h" +//#include "loraconf.h" #ifdef BLECOUNTER #include @@ -17,6 +12,9 @@ static const char *TAG = "blecount"; #include #include +// Local logging tag +static const char *TAG = "blecount"; + class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { void onResult(BLEAdvertisedDevice advertisedDevice) { } diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 8ece5b3a..5a5d20f3 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -1,5 +1,6 @@ /* configmanager persists runtime configuration using NVRAM of ESP32*/ +#include "main.h" #include "globals.h" #include #include diff --git a/src/lorawan.cpp b/src/lorawan.cpp index 895b03fd..389aa89d 100644 --- a/src/lorawan.cpp +++ b/src/lorawan.cpp @@ -1,12 +1,9 @@ - // Basic Config #include "main.h" -// #include - #include "globals.h" -#include "loraconf.h" // LMIC-Arduino LoRaWAN Stack +#include "loraconf.h" #include #include diff --git a/src/main.cpp b/src/main.cpp index 89b808cd..ca669f4d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,27 +1,29 @@ /* - * - * Oliver Brandmueller 2017/2018 - * Klaus Wilting 2018 - * - * some lines of code taken from: - * - * Copyright (c) 2017, Ɓukasz Marcin Podkalicki - * ESP32/016 WiFi Sniffer. - * https://github.com/lpodkalicki/blog/tree/master/esp32/016_wifi_sniffer - * - * Arduino-LMIC Library - * TTN OTAA Example - * https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-otaa/ - * - * nkolban esp32 snippets - * BLE Scan - * https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils/tests/BLETests/Arduino/BLE_scan - * - * parts of code in lorawan.cpp has been grabbed from RadioHead Library - */ + +Copyright 2018 Oliver Brandmueller +Copyright 2018 Klaus Wilting -// First things first + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +NOTICE: +Parts of the source files in this repository are made available under different licenses. +Refer to LICENSE.txt file in repository for more details. + +*/ + +// Basic Config #include "main.h" +#include "globals.h" // std::set for unified array functions #include @@ -30,13 +32,10 @@ #include // LMIC-Arduino LoRaWAN Stack +#include "loraconf.h" #include #include -// Basic Config -#include "loraconf.h" -#include "globals.h" - // WiFi Functions #include #include diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 1f96bcce..a37afcf7 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -2,6 +2,8 @@ // parses multiple number of command / value pairs from LoRaWAN remote command port (RCMDPORT) // checks commands and executes each command with 1 argument per command +// Basic Config +#include "main.h" #include "globals.h" // Local logging tag diff --git a/src/wifisniffer.cpp b/src/wifisniffer.cpp index c81a2a00..6c388d80 100644 --- a/src/wifisniffer.cpp +++ b/src/wifisniffer.cpp @@ -1,10 +1,6 @@ -#include "main.h" - -#include - // Basic Config +#include "main.h" #include "globals.h" -#include "loraconf.h" // WiFi Functions #include