mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 22:47:01 +00:00
added Battery Info to Comment
This commit is contained in:
parent
8e85da253c
commit
1ddd460eec
1 changed files with 8 additions and 16 deletions
|
|
@ -99,6 +99,14 @@ void checkBeaconInterval() {
|
|||
Serial.println("---- Sending iGate Beacon ----");
|
||||
STATION_Utils::deleteNotHeard();
|
||||
activeStations();
|
||||
if (Config.bme.active) {
|
||||
beaconPacket = iGateBeaconPacket.substring(0,iGateBeaconPacket.indexOf(":=")+20) + "_" + BME_Utils::readDataSensor() + iGateBeaconPacket.substring(iGateBeaconPacket.indexOf(":=")+21) + " + WX";
|
||||
} else {
|
||||
beaconPacket = iGateBeaconPacket;
|
||||
}
|
||||
if (Config.sendBatteryVoltage) {
|
||||
beaconPacket += " (Batt=" + String(BATTERY_Utils::checkVoltages(),2) + "V)";
|
||||
}
|
||||
if (stationMode==1 || stationMode==2) {
|
||||
thirdLine = getLocalIP();
|
||||
if (!Config.bme.active) {
|
||||
|
|
@ -107,14 +115,6 @@ void checkBeaconInterval() {
|
|||
sixthLine = "";
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING iGate BEACON", 1000);
|
||||
seventhLine = " listening...";
|
||||
if (Config.bme.active) {
|
||||
beaconPacket = iGateBeaconPacket.substring(0,iGateBeaconPacket.indexOf(":=")+20) + "_" + BME_Utils::readDataSensor() + iGateBeaconPacket.substring(iGateBeaconPacket.indexOf(":=")+21) + " + WX";
|
||||
} else {
|
||||
beaconPacket = iGateBeaconPacket;
|
||||
}
|
||||
if (Config.sendBatteryVoltage) {
|
||||
beaconPacket += " (Batt=" + String(BATTERY_Utils::checkVoltages(),2) + "V)";
|
||||
}
|
||||
espClient.write((beaconPacket + "\n").c_str());
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
|
||||
} else if (stationMode==3 || stationMode==4) {
|
||||
|
|
@ -133,14 +133,6 @@ void checkBeaconInterval() {
|
|||
if (stationMode == 4) {
|
||||
LoRa_Utils::changeFreqTx();
|
||||
}
|
||||
if (Config.bme.active) {
|
||||
beaconPacket = iGateBeaconPacket.substring(0,iGateBeaconPacket.indexOf(":=")+20) + "_" + BME_Utils::readDataSensor() + iGateBeaconPacket.substring(iGateBeaconPacket.indexOf(":=")+21) + " + WX";
|
||||
} else {
|
||||
beaconPacket = iGateBeaconPacket;
|
||||
}
|
||||
if (Config.sendBatteryVoltage) {
|
||||
beaconPacket += " (Batt=" + String(BATTERY_Utils::checkVoltages(),2) + "V)";
|
||||
}
|
||||
LoRa_Utils::sendNewPacket("APRS", beaconPacket);
|
||||
if (stationMode == 4) {
|
||||
LoRa_Utils::changeFreqRx();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue