update BatteryInfo on screen when BME is selected
This commit is contained in:
parent
deeb592084
commit
b9aca22f31
|
|
@ -20,7 +20,7 @@
|
||||||
Configuration Config;
|
Configuration Config;
|
||||||
WiFiClient espClient;
|
WiFiClient espClient;
|
||||||
|
|
||||||
String versionDate = "2023.07.16";
|
String versionDate = "2023.07.17";
|
||||||
int myWiFiAPIndex = 0;
|
int myWiFiAPIndex = 0;
|
||||||
int myWiFiAPSize = Config.wifiAPs.size();
|
int myWiFiAPSize = Config.wifiAPs.size();
|
||||||
WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex];
|
WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex];
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ String receivePacket() {
|
||||||
rssi = LoRa.packetRssi();
|
rssi = LoRa.packetRssi();
|
||||||
snr = LoRa.packetSnr();
|
snr = LoRa.packetSnr();
|
||||||
freqError = LoRa.packetFrequencyError();
|
freqError = LoRa.packetFrequencyError();
|
||||||
|
Serial.println("(RSSI:" +String(rssi) + " / SNR:" + String(snr) + " / FreqErr:" + String(freqError) + ")");
|
||||||
if (Config.syslog.active && (stationMode==1 || stationMode==2)) {
|
if (Config.syslog.active && (stationMode==1 || stationMode==2)) {
|
||||||
SYSLOG_Utils::log("LoRa Rx", loraPacket, rssi, snr, freqError);
|
SYSLOG_Utils::log("LoRa Rx", loraPacket, rssi, snr, freqError);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ void checkBeaconInterval() {
|
||||||
sixthLine = "";
|
sixthLine = "";
|
||||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING iGate BEACON", 1000);
|
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING iGate BEACON", 1000);
|
||||||
if (Config.sendBatteryVoltage) {
|
if (Config.sendBatteryVoltage) {
|
||||||
sixthLine = " " + beaconPacket;
|
sixthLine = " (Batt=" + String(BATTERY_Utils::checkVoltages(),2) + "V)";
|
||||||
}
|
}
|
||||||
seventhLine = " listening...";
|
seventhLine = " listening...";
|
||||||
espClient.write((beaconPacket + "\n").c_str());
|
espClient.write((beaconPacket + "\n").c_str());
|
||||||
|
|
@ -134,7 +134,7 @@ void checkBeaconInterval() {
|
||||||
sixthLine = "";
|
sixthLine = "";
|
||||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING iGate BEACON", 0);
|
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING iGate BEACON", 0);
|
||||||
if (Config.sendBatteryVoltage) {
|
if (Config.sendBatteryVoltage) {
|
||||||
sixthLine = " " + beaconPacket;
|
sixthLine = " (Batt=" + String(BATTERY_Utils::checkVoltages(),2) + "V)";
|
||||||
}
|
}
|
||||||
seventhLine = " listening...";
|
seventhLine = " listening...";
|
||||||
if (stationMode == 4) {
|
if (stationMode == 4) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue