mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fix: prevent duplicated logging
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22046 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
39758cb140
commit
163b1f0cf9
@ -543,8 +543,8 @@ sub Read {
|
|||||||
my $topic = $mqtt->topic();
|
my $topic = $mqtt->topic();
|
||||||
GP_ForallClients($hash,sub {
|
GP_ForallClients($hash,sub {
|
||||||
my $client = shift;
|
my $client = shift;
|
||||||
Log3($client->{NAME},5,"publish received for $topic, ".$mqtt->message());
|
|
||||||
if (grep { $topic =~ $_ } @{$client->{subscribeExpr}}) {
|
if (grep { $topic =~ $_ } @{$client->{subscribeExpr}}) {
|
||||||
|
Log3($client->{NAME},5,"publish received for $topic, ".$mqtt->message());
|
||||||
readingsSingleUpdate($client,"transmission-state","incoming publish received",1);
|
readingsSingleUpdate($client,"transmission-state","incoming publish received",1);
|
||||||
my $fn = $modules{$defs{$client->{NAME}}{TYPE}}{OnMessageFn};
|
my $fn = $modules{$defs{$client->{NAME}}{TYPE}}{OnMessageFn};
|
||||||
if($fn) {
|
if($fn) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user