Added more client telemetry

pull/5/head
sh123 2019-05-01 16:45:49 +03:00
rodzic 3d648e8c1a
commit ec9a86fce6
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -32,7 +32,6 @@ void LoraPrs::setupWifi(String wifiName, String wifiKey)
WiFi.begin(wifiName.c_str(), wifiKey.c_str()); WiFi.begin(wifiName.c_str(), wifiKey.c_str());
// TODO, add timeout
while (WiFi.status() != WL_CONNECTED) { while (WiFi.status() != WL_CONNECTED) {
delay(500); delay(500);
Serial.print("."); Serial.print(".");
@ -114,7 +113,10 @@ void LoraPrs::onLoraReceived()
for (int i; i < buf.length(); i++) { for (int i; i < buf.length(); i++) {
serialBt_.write((uint8_t)buf[i]); serialBt_.write((uint8_t)buf[i]);
} }
onAprsReceived(buf + " " + String(LoRa.packetSnr()) + "dB\n"); onAprsReceived(buf + " " +
String(LoRa.packetRssi()) + ", " +
String(LoRa.packetSnr()) + "dB, " +
String(LoRa.packetFrequencyError()) + "ppm\n");
delay(50); delay(50);
} }