mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +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} ) );
|
||||
|
||||
#SWAP_Set( $rhash, $rname, "getConfig" ) if( !$first );
|
||||
SWAP_Set( $rhash, $rname, "statusRequest" ) if( $first );
|
||||
}
|
||||
|
||||
if( my $parse = $modules{$rhash->{TYPE}}{SWAP_ParseFn} ) {
|
||||
no strict "refs";
|
||||
&{$parse}($rhash,$reg,$func,$data);
|
||||
use strict "refs";
|
||||
if( $first ) {
|
||||
SWAP_Set( $rhash, $rname, "statusRequest" );
|
||||
} else {
|
||||
SWAP_Send($rhash, $rhash->{addr}, QUERY, "01" );
|
||||
SWAP_Send($rhash, $rhash->{addr}, QUERY, "02" );
|
||||
}
|
||||
}
|
||||
|
||||
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})
|
||||
|| hex($nonce) < hex($rhash->{SWAP_nonce}) ) {
|
||||
delete( $rhash->{SWAP_MISSED} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user