2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-17 17:36:01 +00:00

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:
jpawlowski 2016-12-17 15:26:22 +00:00
parent 59a3c29427
commit 03ccf2c0bd

View File

@ -2243,16 +2243,16 @@ sub ENIGMA2_wake ($$) {
AttrVal( $name, "WOL_useUdpBroadcast",
AttrVal( $name, "useUdpBroadcast", "255.255.255.255" ) );
my $port = AttrVal( $name, "WOL_port", "9" );
my $mode = AttrVal( $name, "WOL_mode", "BOTH" );
my $mode = AttrVal( $name, "WOL_mode", "UDP" );
Log3 $name, 4,
"ENIGMA2 $name: Waking up by sending Wake-On-Lan magic package to "
. $mac;
if ( $hash->{MODE} eq "BOTH" || $hash->{MODE} eq "EW" ) {
if ( $mode eq "BOTH" || $mode eq "EW" ) {
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 );
}
}