From a876d782b4a9a02af7c40ae62f078141e2e54090 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 10 Aug 2018 19:17:44 +0000 Subject: [PATCH] 00_MQTT2_SERVER.pm: bugfixes (Forum #90145) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17121 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/00_MQTT2_SERVER.pm | 3 ++- FHEM/10_MQTT2_DEVICE.pm | 11 +++++++---- MAINTAINER.txt | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/FHEM/00_MQTT2_SERVER.pm b/FHEM/00_MQTT2_SERVER.pm index c7b33d44f..c381fe0b4 100644 --- a/FHEM/00_MQTT2_SERVER.pm +++ b/FHEM/00_MQTT2_SERVER.pm @@ -442,7 +442,8 @@ MQTT2_SERVER_getStr($$)

Enable the server on port <tcp-portnr>. If global is specified, then requests from all interfaces (not only localhost / 127.0.0.1) are - serviced. If IP is specified, then FHEMWEB will only listen on this IP.
+ serviced. If IP is specified, then MQTT2_SERVER will only listen on this + IP.
To enable listening on IPV6 see the comments here.
Notes:
diff --git a/FHEM/10_MQTT2_DEVICE.pm b/FHEM/10_MQTT2_DEVICE.pm index 4193fd9e7..1397fb00e 100644 --- a/FHEM/10_MQTT2_DEVICE.pm +++ b/FHEM/10_MQTT2_DEVICE.pm @@ -2,6 +2,8 @@ # $Id$ package main; +# TODO: autocreate + use strict; use warnings; use SetExtensions; @@ -390,8 +392,9 @@ MQTT2_DEVICE_Undef($$) disabledForIntervals
-
  • readingList <topic-regexp> [readingName|perl-Expression] ...
    - On receiving a topic matching the topic-regexp either set readingName to +
  • readingList <regexp> [readingName|perl-Expression] ... +
    + If the regexp matches topic:message either set readingName to the published message, or evaluate the perl expression, which has to return a hash consisting of readingName=>readingValue entries. You can define multiple such tuples, separated by newline, the newline @@ -399,8 +402,8 @@ MQTT2_DEVICE_Undef($$) Example:
      attr dev readingList\
    -     myDev/temp temperature\
    -     myDev/hum { { humidity=>$EVTPART0 } }
    +     myDev/temp:.* temperature\
    +     myDev/hum:.* { { humidity=>$EVTPART0 } }

    Notes: