- indexFriendlyName modified\n- debugging

This commit is contained in:
DTux committed 2022-02-24 21:46:10 +01:00
1 parent 34dca81ba5
commit f6b7b9e664
7 files changed
+41 -145

No files matched your search

+1 -2
View File
@@ -21,8 +21,7 @@ $topics["linky2mqtt"]->callback = function($topic, $message)
$device["device"]->ieeeAddress = $payloadArray["ieeeAddress"];
$device["device"]->type = $payloadArray["type"];
$indexDevices[$device["device"]->ieeeAddress] = & $device["device"];
$indexFriendlyNames[$fn] = & $device["device"];
$indexFriendlyNames[$topicName][$fn] = & $device["device"];
}else
{
$device = &$device[$fn];