|
Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
|
Subscribe on error state in motion system. Generates event for any error state in motion system.
/subscription
POST
CREATED(201)
<?xml version="1.0" encoding="utf-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Event</title> <base href="http://localhost/"/> </head> <body> <div class="state"> <a href="subscription/4" rel="group"/> <a href="ws://localhost/poll/4" rel="self"/> <a href="subscription/4?action=show" rel="action"/> <ul> <li class="motionsystem-errorstate-ev" title="error-state"> <a href="/rw/motionsystem/errorstate;erroreventchange" rel="self"/> <span class="errorstate">HPJ_ERR_ROBHOLD_MISMATCH</span> <span class="errorcounter">1</span> </li> </ul> </div> </body> </html>
BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
HTTP Errors, see HTTP Status codes
Robot controller errors, see Robot controller return codes
only low priority subscription(-p=0) and medium priority subscription(-p=1) are allowed on this resource**
curl --digest -u "Default User":robotics -X POST -d "resources=1&1=/rw/motionsystem/errorstate;erroreventchange&1-p=0" "http://localhost/subscription"
curl --digest -u "Default User":robotics -X POST -d "resources=1&1=/rw/motionsystem/errorstate;erroreventchange&1-p=1" "http://localhost/subscription"
On subscription an empty initial event will be generated. Not supported in bootserver mode.