diff --git a/build/core-version b/build/core-version index ca71218..43272d6 100644 --- a/build/core-version +++ b/build/core-version @@ -1 +1 @@ -0.1.5a2-16-g3a7448e +0.1.5a2-17-g09c6a79 diff --git a/lib/modules/InputDeviceServices/InputDeviceServices.API.php b/lib/modules/InputDeviceServices/InputDeviceServices.API.php index 3e5d764..67ef2af 100644 --- a/lib/modules/InputDeviceServices/InputDeviceServices.API.php +++ b/lib/modules/InputDeviceServices/InputDeviceServices.API.php @@ -108,6 +108,9 @@ class InputDeviceServices { $client->write($output); } }); + $inputserver_ref->stderr->on('data', function($output) { + LogEcho($output,"INPUT"); + }); $ResponseArray = array("response_type"=>"success", "response_msg"=>"Event server started on port 5055", @@ -127,10 +130,13 @@ class InputDeviceServices { //$client = new steam_socket_client('tcp://'.$IP.":".$PORT); //$client_connection = new React\Stream\Steam($client, $loop); $input_client_process = new React\ChildProcess\Process('exec /opt/uinput-mapper/input-create -C'); + $input_client_process->stderr->on('data', function ($output){ + LogEcho($output,"INPUTC"); + }); $input_client_process->start($loop); $dnsResolverFactory = new React\Dns\Resolver\Factory(); $dns = $dnsResolverFactory->createCached($IP, $loop); - + $input_client = new React\SocketClient\Connector($loop, $dns); $input_client->create($IP, $PORT)->then(function (React\Stream\Stream $stream) { $stream->on('data', function($data) use ($stream) {