diff --git a/src/ESP32_APRS_Weather_Report.cpp b/src/ESP32_APRS_Weather_Report.cpp index 995dabb..d67af59 100644 --- a/src/ESP32_APRS_Weather_Report.cpp +++ b/src/ESP32_APRS_Weather_Report.cpp @@ -67,10 +67,12 @@ void setup() { APRS_connect(); } -void loop() { +void loop() { APRS_IS_READ(); - uint32_t lastTx = millis() - lastTxTime; + + + /*uint32_t lastTx = millis() - lastTxTime; if (lastTx >= BeaconInterval) { beacon_update = true; } @@ -80,5 +82,5 @@ void loop() { espClient.write(WeatherReportBeaconPacket.c_str()); lastTxTime = millis(); beacon_update = false; - } + }*/ } \ No newline at end of file diff --git a/src/config.h b/src/config.h index 6d9f140..27da475 100644 --- a/src/config.h +++ b/src/config.h @@ -14,7 +14,8 @@ const String AprsServer = "radioaficion.pro"; // write the add const int AprsServerPort = 14580; // 14579 port is allready filtered so use 14580 const String AprsSoftwareName = "ESP32_TEST"; const String AprsSoftwareVersion = "0.1.0"; -const String AprsFilter = "t/poms/CD2RXU-10/50"; +const int ReportingDistance = 50; +const String AprsFilter = "t/poms/CD2RXU-10/50"; //cambio a : "t/poms/" + WeatherReportCallsign + "/" + String(ReportingDistance) const String WeatherReportComment = "LoRa APRS Weather Report https://github.com/richonguzman/ESP32_APRS_Weather_Report"; diff --git a/src/pins_config.h b/src/pins_config.h deleted file mode 100644 index 040348c..0000000 --- a/src/pins_config.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef PINS_CONFIG_H_ -#define PINS_CONFIG_H_ - -#include - - -#define LORA_SCK 5 -#define LORA_MISO 19 -#define LORA_MOSI 27 -#define LORA_CS 18 -#define LORA_RST 14 -#define LORA_IRQ 26 - -/* -SX1278-------------------> ESP32 -GND GND -DIO1 - -DIO2 - -DIO3 - -VCC 3.3V -MISO 19 -MOSI 27 -SCLK 5 -NSS 18 -DIO0 26 -REST 14 -GND - -*/ - - -#endif \ No newline at end of file