mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-06 13:33:52 +01:00
Add ESP32 & Modem A7670
This commit is contained in:
parent
47e6623881
commit
cda72194db
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 != "") {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue