diff --git a/fhem/FHEM/00_MQTT2_SERVER.pm b/fhem/FHEM/00_MQTT2_SERVER.pm index c7ae9da35..3bd6bc6bd 100644 --- a/fhem/FHEM/00_MQTT2_SERVER.pm +++ b/fhem/FHEM/00_MQTT2_SERVER.pm @@ -444,8 +444,8 @@ MQTT2_SERVER_sendto($$$$) MQTT2_SERVER_calcRemainingLength(2+length($topic)+length($val)). pack("n", length($topic)). $topic.$val); + last; # send a message only once } - last; # send a message only once } }