Skip to content

Commit

Permalink
Add ESP32 & Modem A7670
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Apr 23, 2024
1 parent 47e6623 commit cda7219
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,4 @@ build_flags =
lib_deps =
${common.lib_deps}
vshymanskyy/TinyGSM@^0.11.7
vshymanskyy/StreamDebugger@^1.0.1
;https://github.com/ricemices/ArduinoHttpClient
;plerup/EspSoftwareSerial@^8.2.0
vshymanskyy/StreamDebugger@^1.0.1
2 changes: 0 additions & 2 deletions src/LoRa_APRS_iGate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,12 @@ void loop() {
DIGI_Utils::processLoRaPacket(packet); // Send received packet to Digi
}

#ifndef ESP32_DIY_LoRa_A7670
if (Config.tnc.enableServer) { // If TNC server enabled
TNC_Utils::sendToClients(packet); // Send received packet to TNC KISS
}
if (Config.tnc.enableSerial) { // If Serial KISS enabled
TNC_Utils::sendToSerial(packet); // Send received packet to Serial KISS
}
#endif
}

if (Config.aprs_is.active) { // If APRSIS enabled
Expand Down
2 changes: 1 addition & 1 deletion src/aprs_is_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace APRS_IS_Utils {
}

void processLoRaPacket(String packet) {
if (espClient.connected()) {
if (espClient.connected() || modemLoggedToAPRSIS) {
bool queryMessage = false;
String aprsPacket, Sender, AddresseeAndMessage, Addressee;
if (packet != "") {
Expand Down
5 changes: 5 additions & 0 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "aprs_is_utils.h"
#include "syslog_utils.h"
#include "pins_config.h"
#include "A7670_utils.h"
#include "wifi_utils.h"
#include "gps_utils.h"
#include "bme_utils.h"
Expand Down Expand Up @@ -130,7 +131,11 @@ namespace Utils {
if (Config.aprs_is.active && Config.beacon.sendViaAPRSIS) {
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING IGATE BEACON", 0);
seventhLine = " listening...";
#ifdef ESP32_DIY_LoRa_A7670
A7670_Utils::uploadToAPRSIS(beaconPacket);
#else
APRS_IS_Utils::upload(beaconPacket);
#endif
}

if (Config.beacon.sendViaRF) {
Expand Down

0 comments on commit cda7219

Please sign in to comment.