70_ENIGMA2: set WOL_mode default mode to UDP
git-svn-id: https://svn.fhem.de/fhem/trunk@12797 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -2243,16 +2243,16 @@ sub ENIGMA2_wake ($$) {
|
|||||||
AttrVal( $name, "WOL_useUdpBroadcast",
|
AttrVal( $name, "WOL_useUdpBroadcast",
|
||||||
AttrVal( $name, "useUdpBroadcast", "255.255.255.255" ) );
|
AttrVal( $name, "useUdpBroadcast", "255.255.255.255" ) );
|
||||||
my $port = AttrVal( $name, "WOL_port", "9" );
|
my $port = AttrVal( $name, "WOL_port", "9" );
|
||||||
my $mode = AttrVal( $name, "WOL_mode", "BOTH" );
|
my $mode = AttrVal( $name, "WOL_mode", "UDP" );
|
||||||
|
|
||||||
Log3 $name, 4,
|
Log3 $name, 4,
|
||||||
"ENIGMA2 $name: Waking up by sending Wake-On-Lan magic package to "
|
"ENIGMA2 $name: Waking up by sending Wake-On-Lan magic package to "
|
||||||
. $mac;
|
. $mac;
|
||||||
|
|
||||||
if ( $hash->{MODE} eq "BOTH" || $hash->{MODE} eq "EW" ) {
|
if ( $mode eq "BOTH" || $mode eq "EW" ) {
|
||||||
WOL_by_ew( $hash, $mac );
|
WOL_by_ew( $hash, $mac );
|
||||||
}
|
}
|
||||||
if ( $hash->{MODE} eq "BOTH" || $hash->{MODE} eq "UDP" ) {
|
if ( $mode eq "BOTH" || $mode eq "UDP" ) {
|
||||||
WOL_by_udp( $hash, $mac, $host, $port );
|
WOL_by_udp( $hash, $mac, $host, $port );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user