47
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Configuration IoT Core
>
POST method
16548
Using the POST method the user has read and write access to a data point. A form with the required
information is transferred to the IP address of the IO-Link master (IoT port X23).
The syntax of the request to the IoT Core is:
{
"code":code_id,
"cid":id,
"adr":"data_point/service",
"data":{req_data}
}
Correlation ID for the assignment of request and return
Data point which is to be accessed
Service to be performed (→ Overview: IoT services (→ p. 102))
Data to be transferred to the IoT Core (e.g. new values); indication optional (depending on the service)
The syntax of the return of the IoT Core is:
{
"cid":id,
"data":{"value":resp_data},
"code":err_code
}
Correlation ID for the assignment of request and return
Value of the data point; depending on the data type of the data point
Error code (→ IoT Core: Diagnostic codes (→ p. 48))
Example:
Request: {"code":10,"cid":4711, "adr":"devicetag/applicationtag/getdata"}
Return: {"cid":4711,"data":{"value":"AL1940"}, "code":200}