erlaube einzelne zeilen zu ersetzen!
This commit is contained in:
parent
80a26773c1
commit
9ead795427
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue