<type>[optional scope]: <description>
[optional body] [Ticket: no]
This commit is contained in:
parent
938f19f3a7
commit
63371a5049
@ -1,2 +1,2 @@
|
|||||||
UPD 2023-11-15_19:19:41 19028 FHEM/82_LGTV_WebOS.pm
|
UPD 2023-11-15_19:19:41 19028 FHEM/82_LGTV_WebOS.pm
|
||||||
UPD 2023-11-16_19:49:21 55997 lib/FHEM/Devices/LGTV/LGTVWebOS.pm
|
UPD 2023-11-16_19:54:21 56056 lib/FHEM/Devices/LGTV/LGTVWebOS.pm
|
||||||
|
@ -643,6 +643,7 @@ sub Open {
|
|||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
my $host = $hash->{HOST};
|
my $host = $hash->{HOST};
|
||||||
|
my $port = 3000;
|
||||||
my $timeout = 0.1;
|
my $timeout = 0.1;
|
||||||
|
|
||||||
::Log3( $name, 4, "LGTV_WebOS ($name) - Baue Socket Verbindung auf" );
|
::Log3( $name, 4, "LGTV_WebOS ($name) - Baue Socket Verbindung auf" );
|
||||||
@ -654,20 +655,22 @@ sub Open {
|
|||||||
PeerHost => $host,
|
PeerHost => $host,
|
||||||
PeerPort => 3001,
|
PeerPort => 3001,
|
||||||
Proto => 'tcp',
|
Proto => 'tcp',
|
||||||
SSL_startHandshake => 1, #( $proto eq 'wss' ? 1 : 0 ),
|
SSL_startHandshake => 1, #( $proto eq 'wss' ? 1 : 0 ),
|
||||||
SSL_verify_mode => 'SSL_VERIFY_NONE',
|
SSL_verify_mode => SSL_VERIFY_NONE,
|
||||||
KeepAlive => 1,
|
|
||||||
Timeout => $timeout
|
# Blocking => 1
|
||||||
|
KeepAlive => 1,
|
||||||
|
Timeout => $timeout
|
||||||
)
|
)
|
||||||
|| IO::Socket::INET->new(
|
|| IO::Socket::INET->new(
|
||||||
PeerHost => $host,
|
PeerHost => $host,
|
||||||
PeerPort => 3000,
|
PeerPort => $port,
|
||||||
Proto => 'tcp',
|
Proto => 'tcp',
|
||||||
KeepAlive => 1,
|
KeepAlive => 1,
|
||||||
Timeout => $timeout
|
Timeout => $timeout
|
||||||
)
|
)
|
||||||
or
|
or return ::Log3( $name, 4,
|
||||||
return ::Log3( $name, 4, "LGTV_WebOS ($name) Couldn't connect to $host" )
|
"LGTV_WebOS ($name) Couldn't connect to $host:$port/3001" )
|
||||||
; # open Socket
|
; # open Socket
|
||||||
|
|
||||||
$hash->{FD} = $socket->fileno();
|
$hash->{FD} = $socket->fileno();
|
||||||
|
Loading…
Reference in New Issue
Block a user