mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 16:46:35 +00:00
HMCCU: moved to FHEM directory
git-svn-id: https://svn.fhem.de/fhem/trunk@10839 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6abfe61b1e
commit
14803f9c53
@ -3,7 +3,9 @@
|
||||
#########################################################
|
||||
# ccurpcd.pl
|
||||
#
|
||||
# Version 1.5
|
||||
# $Id:
|
||||
#
|
||||
# Version 1.6
|
||||
#
|
||||
# RPC server for Homematic CCU.
|
||||
#
|
||||
@ -15,6 +17,7 @@
|
||||
#--------------------------------------------------------
|
||||
# Queue file entries:
|
||||
#
|
||||
# IN|INIT|0
|
||||
# ND|Address|Type
|
||||
# UD|Address|Hint
|
||||
# DD|Address
|
||||
@ -112,9 +115,9 @@ sub CCURPC_Shutdown ($)
|
||||
my ($callbackurl) = @_;
|
||||
|
||||
if ($callbackurl && $shutdown == 0) {
|
||||
Log ("Shutdown RPC server");
|
||||
WriteQueue ("EX|SHUTDOWN|0");
|
||||
Log ("Shutdown RPC server in progress");
|
||||
$client->send_request("init", $callbackurl);
|
||||
WriteQueue ("EX|SHUTDOWN|0");
|
||||
$shutdown = 1;
|
||||
}
|
||||
|
||||
@ -214,6 +217,8 @@ sub CCURPC_Initialize ($$)
|
||||
$client->send_request ("init",$callbackurl,"CB".$serverport);
|
||||
Log "RPC callback with URL ".$callbackurl." initialized";
|
||||
|
||||
WriteQueue ("IN|INIT|1");
|
||||
|
||||
return $callbackurl;
|
||||
}
|
||||
|
||||
@ -338,7 +343,7 @@ if (!defined ($callbackurl)) {
|
||||
die "Error: Can't initialize RPC server\n";
|
||||
}
|
||||
|
||||
# Server loop is interruptable bei SIGNINT
|
||||
# Server loop is interruptable bei signal SIGINT
|
||||
Log "Entering server loop. Use kill -SIGINT $$ to terminate program";
|
||||
$server->server_loop;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user