mirror of https://github.com/SQ9MDD/ESP32IGate.git
Add qAR
This commit is contained in:
parent
6684c8e335
commit
974773c59d
|
|
@ -4,6 +4,7 @@
|
||||||
#include <LibAPRSesp.h>
|
#include <LibAPRSesp.h>
|
||||||
#include <WiFiClient.h>
|
#include <WiFiClient.h>
|
||||||
#include <AX25.h>
|
#include <AX25.h>
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
int igateProcess(AX25Msg &Packet);
|
int igateProcess(AX25Msg &Packet);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#include "igate.h"
|
#include "igate.h"
|
||||||
|
|
||||||
extern WiFiClient aprsClient;
|
extern WiFiClient aprsClient;
|
||||||
|
extern Configuration config;
|
||||||
|
|
||||||
int igateProcess(AX25Msg &Packet)
|
int igateProcess(AX25Msg &Packet)
|
||||||
{
|
{
|
||||||
int idx, j;
|
int idx, j;
|
||||||
uint8_t ctmp;
|
|
||||||
String header;
|
String header;
|
||||||
|
|
||||||
j = 0;
|
j = 0;
|
||||||
|
|
@ -46,6 +46,8 @@ int igateProcess(AX25Msg &Packet)
|
||||||
header += String(F("-"));
|
header += String(F("-"));
|
||||||
header += String(Packet.dst.ssid);
|
header += String(Packet.dst.ssid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Add Path
|
||||||
for (int i = 0; i < Packet.rpt_count; i++)
|
for (int i = 0; i < Packet.rpt_count; i++)
|
||||||
{
|
{
|
||||||
header += String(",");
|
header += String(",");
|
||||||
|
|
@ -58,6 +60,17 @@ int igateProcess(AX25Msg &Packet)
|
||||||
if (Packet.rpt_flags & (1 << i))
|
if (Packet.rpt_flags & (1 << i))
|
||||||
header += "*";
|
header += "*";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Add qAR,callSSID
|
||||||
|
header += String(F(",qAR,"));
|
||||||
|
header += String(config.aprs_mycall);
|
||||||
|
if (config.aprs_ssid > 0)
|
||||||
|
{
|
||||||
|
header += String(F("-"));
|
||||||
|
header += String(config.aprs_ssid);
|
||||||
|
}
|
||||||
|
|
||||||
|
//Add Infomation
|
||||||
header += String(F(":"));
|
header += String(F(":"));
|
||||||
uint8_t Raw[500];
|
uint8_t Raw[500];
|
||||||
memset(Raw,0,sizeof(Raw));
|
memset(Raw,0,sizeof(Raw));
|
||||||
|
|
|
||||||
|
|
@ -460,7 +460,7 @@ void SA818_INIT(bool boot)
|
||||||
#ifdef SR_FRS
|
#ifdef SR_FRS
|
||||||
Serial.println("Radio Module SR_FRS Init");
|
Serial.println("Radio Module SR_FRS Init");
|
||||||
#else
|
#else
|
||||||
Serial.println("Radio Module SA868 Init");
|
Serial.println("Radio Module SA818/SA868 Init");
|
||||||
#endif
|
#endif
|
||||||
if (boot)
|
if (boot)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue