--- a/www-thermferm/utilities.php Thu May 14 22:03:35 2015 +0200 +++ b/www-thermferm/utilities.php Sat May 16 17:39:30 2015 +0200 @@ -1,6 +1,6 @@ <?php /***************************************************************************** - * Copyright (C) 2014 + * Copyright (C) 2014-2015 * * Michiel Broek <mbroek at mbse dot eu> * @@ -49,7 +49,7 @@ if ($sock == false) { return ""; } - socket_write($sock, $command, 4096); + socket_write($sock, $command . "\r\n", 4096); $answer = ""; while (1) { @@ -78,8 +78,8 @@ } foreach($command as $cmd) { - socket_write($sock, $cmd, 4096); - usleep(20000); /* Give server time to recognize lines */ + socket_write($sock, $cmd . "\r\n", 4096); +// usleep(20000); /* Give server time to recognize lines */ } $answer = "";