IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
37
>
POST request
54700
Using a POST request the user has read and write access to a data point.
The syntax of the request to the IoT Core is:
{
"code":"code_id",
"cid":id,
"adr":"data_point/service",
"data":{req_data},
"auth":{"user":"usr_id","passwd":"password"}
}
Field
Parameter
Description
code
code_id
Service class
▪
request
Request
▪
transaction
Transaction
▪
event
Event
cid
id
Correlation ID for the assignment of request and response; ID freely assignable by the user
adr
data_point
Data point of the element tree which is to be accessed
service
Service to be performed (
→
Overview: IoT services
(
data*
req_data
Data to be transferred to the IoT Core (e.g. new values); syntax depending on the service
auth**
usr_id
user name (base64 coded); default value: administrator
password
password (base64 coded)
* = optional; only required for services, that submit data to the IoT core (e. g. setdata)
** = optional; only required, if security mode is activated
The syntax of the return of the IoT Core is:
{
"cid":id,
"data":{resp_data},
"code":diag_code
}
Field
Parameter
Description
cid
id
Correlation ID for the assignment of request and response (see request)
data*
resp_data
Value of the data point; syntax depending on the service
code
diag_code
Diagnostic code (
→
IoT Core: Diagnostic codes
(
→ p.
* = optional; only required for services, that receive data from the IoT core (e.g. getdata)