1
0

adding command test in apiserver\nsome debugging\nfree sms now running fine

This commit is contained in:
2022-07-10 19:33:19 +02:00
parent 97f8050d29
commit 555abb7c88
14 changed files with 182 additions and 66 deletions

View File

@ -143,6 +143,10 @@ function apiServer($read)
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);
htmlSend($spawn, deleteDevice($argList));
break;
case "test":
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);
htmlSend($spawn, test($argList));
break;
default:
if (is_numeric(array_key_first($argList)))
{

View File

@ -559,4 +559,13 @@ function apiDisplayByType($argList)
}
}
*/
function test()
{
global $hooks;
logger(DEBUG, _("Testing doors") , __FILE__ . ":" . __LINE__);
echo "testing doors";
return $hooks["alerte_intrusion"]->testPortes();
}
?>