From 9e1b95c2c9dad63afd8755e70aa3bbadfe57595e Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Sun, 9 Jun 2024 00:48:28 +0200 Subject: [PATCH] Replaced space for underscore in Stationlist message --- TEF6686_ESP32.ino | 10 +++++----- src/rds.cpp | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 6621d4f..6dc11de 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -3009,11 +3009,11 @@ void ShowFreq(int mode) { if (wifi) { Udp.beginPacket(remoteip, 9030); if (band == BAND_FM) { - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";freq=" + String(frequency) + "0000"); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";freq=" + String(frequency) + "0000"); } else if (band == BAND_OIRT) { - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";freq=" + String(frequency_OIRT) + "0000"); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";freq=" + String(frequency_OIRT) + "0000"); } else { - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";freq=" + String(frequency_AM) + "000"); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";freq=" + String(frequency_AM) + "000"); } Udp.endPacket(); } @@ -3099,7 +3099,7 @@ void ShowSignalLevel() { if (wifi && millis() >= udptimer + 2000) { udptimer = millis(); Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";RcvLevel=" + String(SStatus / 10)); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";RcvLevel=" + String(SStatus / 10)); Udp.endPacket(); } } @@ -3253,7 +3253,7 @@ void ShowBW() { BWreset = false; if (wifi) { Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";bandwidth=" + String(BW * 1000)); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";bandwidth=" + String(BW * 1000)); Udp.endPacket(); } } diff --git a/src/rds.cpp b/src/rds.cpp index de3e135..9b9754a 100644 --- a/src/rds.cpp +++ b/src/rds.cpp @@ -269,7 +269,7 @@ void doAF() { if (radio.af_counter != af_counterold && radio.rds.hasAF) { if (wifi) { Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";AF="); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";AF="); for (byte af_scan = 0; af_scan < radio.af_counter; af_scan++) { if (wifi) { @@ -303,7 +303,7 @@ void showECC() { if (wifi) { Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";ECC="); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";ECC="); if (radio.rds.ECC < 0x10) Udp.print("0"); Udp.print(String(radio.rds.ECC, HEX)); Udp.endPacket(); @@ -629,7 +629,7 @@ void showPI() { if (wifi) { Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";PI=" + String(radio.rds.picode, 4)); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";PI=" + String(radio.rds.picode, 4)); Udp.endPacket(); } } @@ -659,7 +659,7 @@ void showPTY() { if (wifi) { Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";PTY="); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";PTY="); Udp.print(String(radio.rds.stationTypeCode, HEX)); Udp.endPacket(); } @@ -719,7 +719,7 @@ void showPS() { if (wifi && radio.rds.stationName.length() > 0 && PSold != radio.rds.stationName) { Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";PS="); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";PS="); char PShex[9]; radio.rds.stationName.toCharArray(PShex, 9); for (int i = 0; i < 8; i++) @@ -857,7 +857,7 @@ void showRadioText() { if (wifi) { Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";RT1="); + Udp.print("from=TEF_tuner_" + String(stationlistid, DEC) + ";RT1="); char RThex[65]; radio.rds.stationText.toCharArray(RThex, 65); for (int i = 0; i < 64; i++) {