diff --git a/server/ControlScripts/TestScriptsScope.php b/server/ControlScripts/TestScriptsScope.php index 4d92bf8..5ce4552 100644 --- a/server/ControlScripts/TestScriptsScope.php +++ b/server/ControlScripts/TestScriptsScope.php @@ -17,14 +17,9 @@ "author" => "Eugene Sukhodolskiy" ], function($params) { $device = $this -> devices() -> by_alias("test_stand_relay"); - $device_api = $device -> device_api(); - - $status = $device_api -> get_status(); - return $status; - // if($status and $status["channels"][0]) { - - // } - // return []; + return [ + "device_response" => $device -> device_api() -> toggle_channel(), + ] }); }