IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
127
>
Service: getsubscriptioninfo
61192
Name:
getsubscriptioninfo
Description:
The service provides information about an existing subscription (subscribe).
The following parameters of the existing subscription are to be used for the query:
•
Value of the identifier cid (e.g. 4711)
•
Number of the timer (e.g. timer[1])
•
Name of the callback topic (e.g. B. temp)
Request data ("data" field):
Data field
Mandatory
field
Data type Description
callback
mandatory
STRING
Address to which IoT Core event notifications are to be sent; complete
URL: http://ipaddress:port/path
Return data ("data" field):
Data field
Mandatory
field
Data type Description
subscription
mandatory
BOOL
Status of the transferred subscription parameter
datatosend
mandatory
ARRAY
OF
STRINGS
List with subscribed data points
cid
mandatory
NUMBER
ID of the subscribe request
callbackurl
mandatory
STRING
Address to which IoT Core event notifications are to be sent; complete
URL: http://ipaddress:port/path
Example:
•
Request object:
{
"code":"request",
"cid":4711,
"adr":"/timer[1]/counter/datachanged/getsubscriptioninfo",
"data":{
"callback":"http://192.168.0.44:80/temp"}
}
•
Return object:
{
"cid": 4711,
"data":{
"subscription": true,
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/productname",
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/temperature"],
"callbackurl":"http://192.168.0.44:80/temp",
"duration":"lifetime"},
"code":200
}
>