|
Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
|
Get a list of actions that can be invoked on the subscription resource
Returns the form that can be used to create a subscription.
/subscription
GET
action=show Required
Returns action Forms for this resource
None
HTTP_OK(200), see HTTP Status codes
subscribe
BAD_REQUEST(400), see HTTP Status codes
See Robot controller return codes
curl --digest -u "Default User":robotics "http://localhost/subscription?action=show"
The form body is in standard form data format and consists of three name-value pairs per resource.
In the above, <identifier> can be any value but it is recommended to use integer values such as 1, 2,3 etc. An example payload to subscribe on a single resource "/rw/iosystem/signals/Virtual1/Board1/do1;state" and associate priority "1" to the resource is shown below:
resources=1&1=/rw/iosystem/signals/Virtual1/Board1/do1;state&1-p=1
Similarly, the payload for subscribing on two resources
"/rw/iosystem/signals/Virtual1/Board1/do1;state" and "/rw/iosystem/signals/Virtual1/Board1/do2;state"
resources=1&1=/rw/iosystem/signals/Virtual1/Board1/do1;state&1-p=1& resources=2&2=/rw/iosystem/signals/Virtual1/Board1/do2;state&2-p=0
maximum 1000 resources can be subscribed per group
Not supported in bootserver mode