mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
query hardware- and firmwareversion if product code is received
git-svn-id: https://svn.fhem.de/fhem/trunk@4534 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7b9c56db28
commit
3f346fcbfe
@ -932,14 +932,12 @@ SWAP_Parse($$)
|
|||||||
|
|
||||||
$rhash->{product} = $products->{$productcode} if( defined($productcode) && defined($products->{$productcode} ) );
|
$rhash->{product} = $products->{$productcode} if( defined($productcode) && defined($products->{$productcode} ) );
|
||||||
|
|
||||||
#SWAP_Set( $rhash, $rname, "getConfig" ) if( !$first );
|
if( $first ) {
|
||||||
SWAP_Set( $rhash, $rname, "statusRequest" ) if( $first );
|
SWAP_Set( $rhash, $rname, "statusRequest" );
|
||||||
|
} else {
|
||||||
|
SWAP_Send($rhash, $rhash->{addr}, QUERY, "01" );
|
||||||
|
SWAP_Send($rhash, $rhash->{addr}, QUERY, "02" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( my $parse = $modules{$rhash->{TYPE}}{SWAP_ParseFn} ) {
|
|
||||||
no strict "refs";
|
|
||||||
&{$parse}($rhash,$reg,$func,$data);
|
|
||||||
use strict "refs";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my @list;
|
my @list;
|
||||||
@ -989,6 +987,12 @@ SWAP_Parse($$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( my $parse = $modules{$rhash->{TYPE}}{SWAP_ParseFn} ) {
|
||||||
|
no strict "refs";
|
||||||
|
&{$parse}($rhash,$reg,$func,$data);
|
||||||
|
use strict "refs";
|
||||||
|
}
|
||||||
|
|
||||||
if( !defined($rhash->{SWAP_nonce})
|
if( !defined($rhash->{SWAP_nonce})
|
||||||
|| hex($nonce) < hex($rhash->{SWAP_nonce}) ) {
|
|| hex($nonce) < hex($rhash->{SWAP_nonce}) ) {
|
||||||
delete( $rhash->{SWAP_MISSED} );
|
delete( $rhash->{SWAP_MISSED} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user