Returns the operations allowed on Controller State resource.
URL
/rw/panel/ctrlstate
Method
GET
URL Params
action=show Required
See Common URL parameters
Data Params
None
Success Response
HTTP_OK(200)
see HTTP Status codes
Example Response
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>panel</title>
<base href="http://localhost/"/>
</head>
<body>
<div class="state">
<form id="set" method='post' action="rw/panel/ctrlstate?action=setctrlstate">
<select name="ctrl-state">
<option value="motoron"></option>
<option value="motoroff"></option>
</select>
</form>
<form id="subscribe" method="post" action="subscription">
<fieldset class="sub_res">
<input type="checkbox" name="resources" value="1"/>
<input class="res" type="text" name="1" maxlength="500" value="/rw/panel/ctrlstate"/>
<select class="priority" name="1-p">
<option value="0" selected="selected"></option>
<option value="1"></option>
</select>
</fieldset>
</form>
</div>
</body>
</html>
Actions
- set
- ctrl-state=[alphanumeric] can be one of
motoron or motoroff Required
- subscribe for more information refer Subscription Service documentation.
Subscribe on controller state changes.
Error Response
BAD_REQUEST(400)
See Robot controller return codes
Sample Call
curl --digest -u "Default User":robotics "http://localhost/rw/panel/ctrlstate?action=show"
Notes
Not supported in bootserver mode