Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Add new resources, Remove existing Resources or change existing resources priorities.

URL

/subscripion/{group-id}

Method

PUT

URL Params

None

Data Params

  • update-resource-priority
    • resources= An identifier Required
    • *<identifier>*= The subscription resource URI Required
    • *<identifier>-p*= The priority associated with the subscription resource. Required
  • update-group
    • resources= An identifier Required
    • *<identifier>*= The subscription resource URI Required
    • *<identifier>-p*= The priority associated with the subscription resource. Required

Success Response

HTTP_OK(200), see HTTP Status codes

Example Response

None

Error Response

BAD_REQUEST(400), UNSUPPORTED_MEDIA(415), see HTTP Status codes

See Robot controller return codes

Sample Call

Update resources in Subscription group.

curl --digest -u "Default User":robotics -d "resources=1&1=/rw/iosystem/signals/Virtual1/Board1/di1;state&1-p=0&resources=2&2=/rw/iosystem/signals/Virtual1/Board1/di2;state&2-p=1" -X PUT "http://localhost/subscription/1"

Notes

maximum 1000 resources can be subscribed per group

Each client can have maximum 2 groups.

Low priority subscription(p=0) is allowed on any resource.

Medium priority subscription(p=1) is allowed on any resource.

RobotWebservice clients can subscribe maximum of 64 resources with High priority (p=2).

High priority subscription is allowed only on below two types of resources.

1.IOSignals in IOSYSTEM.

2.RapidPersistentvariables in RAPID.

Not supported in bootserver mode