mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-17 10:44:47 +01:00
beaconupdate1
This commit is contained in:
parent
f9b2bfb934
commit
3b2f231db0
|
|
@ -112,8 +112,7 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
String receivedPacket = "";
|
||||
uint32_t lastTx = millis() - lastTxTime;
|
||||
bool beacon_update = true;
|
||||
static bool beacon_update = true;
|
||||
|
||||
int packetSize = LoRa.parsePacket();
|
||||
if (packetSize) {
|
||||
|
|
@ -124,9 +123,10 @@ void loop() {
|
|||
valida_y_procesa_packet(receivedPacket); //Serial.println("Mensaje Recibido : " + String(receivedPacket));
|
||||
}
|
||||
|
||||
uint32_t lastTx = millis() - lastTxTime;
|
||||
if (lastTx >= BeaconInterval) {
|
||||
beacon_update = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (beacon_update) {
|
||||
Serial.println("enviando Beacon Estacion/iGate");
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#define WIFI_SSID "Richon"
|
||||
#define WIFI_PASSWORD "k4fPnmg5qnyf"
|
||||
|
||||
#define BeaconInterval 15*60*1000 // 15 minutes
|
||||
#define BeaconInterval 900000 // 15 minutes = 900000 seg
|
||||
|
||||
String iGate_Callsign = "CD2RXU-10";
|
||||
String passcode_igate = "23201";
|
||||
|
|
|
|||
Loading…
Reference in a new issue