erlaube einzelne zeilen zu ersetzen!

This commit is contained in:
Christopher 2019-03-07 20:59:27 +01:00
parent 80a26773c1
commit 9ead795427
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ if($_REQUEST['text'] != "")
foreach ($zeilen as $zeile)
{
if($aktuelleZeile <= 4)
$mqtt->publish("/unhb/dfi/".$aktuelleZeile++, $zeile, 0);
if(trim($zeile) != "")
$mqtt->publish("/unhb/dfi/".$aktuelleZeile, trim($zeile), 0);
$aktuelleZeile = $aktuelleZeile+1;
}
$mqtt->close();