Add ESP32 & Modem A7670

This commit is contained in:
richonguzman 2024-04-23 13:57:21 -04:00
parent 47e6623881
commit cda72194db
4 changed files with 7 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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 != "") {

View file

@ -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) {