mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +00:00
00_MQTT2_SERVER.pm: log the unsupported v5 connection (Forum #138466)
git-svn-id: https://svn.fhem.de/fhem/trunk@28959 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7843537b1e
commit
864cda92f2
@ -400,6 +400,8 @@ MQTT2_SERVER_Read($@)
|
|||||||
($cid, $off) = MQTT2_SERVER_getStr($hash, $pl, $off);
|
($cid, $off) = MQTT2_SERVER_getStr($hash, $pl, $off);
|
||||||
|
|
||||||
if($hash->{protoNum} > 4) {
|
if($hash->{protoNum} > 4) {
|
||||||
|
Log3 $sname, 3, "$cname: unsuported protocol version $hash->{protoNum}, ".
|
||||||
|
"closing the connection";
|
||||||
return MQTT2_SERVER_out($hash, pack("C*", 0x20, 2, 0, 1), $dump,
|
return MQTT2_SERVER_out($hash, pack("C*", 0x20, 2, 0, 1), $dump,
|
||||||
sub{ CommandDelete(undef, $hash->{NAME}); });
|
sub{ CommandDelete(undef, $hash->{NAME}); });
|
||||||
}
|
}
|
||||||
|
@ -2921,7 +2921,7 @@ sub
|
|||||||
ZWave_configParseModel($;$)
|
ZWave_configParseModel($;$)
|
||||||
{
|
{
|
||||||
my ($cfg, $my) = @_;
|
my ($cfg, $my) = @_;
|
||||||
return if(!$my && ZWave_configParseModel($cfg, 1));
|
return if(!$my && ZWave_configParseModel($cfg, 1)); # first fhem_ then open...
|
||||||
|
|
||||||
my $fn = $attr{global}{modpath}."/FHEM/lib/".($my ? "fhem_":"open").
|
my $fn = $attr{global}{modpath}."/FHEM/lib/".($my ? "fhem_":"open").
|
||||||
"zwave_deviceconfig.xml.gz";
|
"zwave_deviceconfig.xml.gz";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user