mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-05-02 19:32:13 +02:00
1.1.3
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#include <TinyGPS++.h>
|
||||
#include <WiFi.h>
|
||||
#include "configuration.h"
|
||||
#include "gps_utils.h"
|
||||
|
||||
extern Configuration Config;
|
||||
extern WiFi_AP *currentWiFi;
|
||||
extern WiFiClient espClient;
|
||||
extern int stationMode;
|
||||
String distance;
|
||||
|
||||
@@ -78,7 +80,7 @@ String processLongitudeAPRS(double lon) {
|
||||
|
||||
String generateBeacon() {
|
||||
String stationLatitude, stationLongitude, beaconPacket;
|
||||
if (stationMode==1 || stationMode==2) {
|
||||
if (stationMode==1 || stationMode==2 || (stationMode==5 && WiFi.status() == WL_CONNECTED && espClient.connected())) {
|
||||
stationLatitude = processLatitudeAPRS(currentWiFi->latitude);
|
||||
stationLongitude = processLongitudeAPRS(currentWiFi->longitude);
|
||||
beaconPacket = Config.callsign + ">APLRG1,qAC:=" + stationLatitude + "L" + stationLongitude;
|
||||
|
||||
Reference in New Issue
Block a user