syslog update

This commit is contained in:
richonguzman
2024-04-28 09:06:45 -04:00
parent c6929e161a
commit b2b388da99
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -193,9 +193,12 @@ namespace LoRa_Utils {
} else if (state == RADIOLIB_ERR_RX_TIMEOUT) {
// timeout occurred while waiting for a packet
} else if (state == RADIOLIB_ERR_CRC_MISMATCH) {
rssi = radio.getRSSI();
snr = radio.getSNR();
freqError = radio.getFrequencyError();
Utils::println(F("CRC error!"));
if (Config.syslog.active && WiFi.status() == WL_CONNECTED) {
SYSLOG_Utils::log("Rx", "RADIOLIB_ERR_CRC_MISMATCH", 0,0,0);
SYSLOG_Utils::log("CRC", loraPacket, rssi, snr, freqError);
}
loraPacket = "";
} else {