56
ifm
Device Manual IO-Link Master with PROFINET interface CabinetLine 8 Ports IP 20 (AL1900)
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}
}
Parameter
Description
code_id
ID of the service class
10
Request
11
Transaction
80
Event
id
Correlation ID for the assignment of request and return
data_point
Data point which is to be accessed
service
Service to be performed (
→
Overview: IoT services
(
→ p.
req_data
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
}
Parameter
Description
id
Correlation ID for the assignment of request and return
resp_data
Value of the data point; depending on the data type of the data point
err_code
Error code (
→
IoT Core: Diagnostic codes
(
→ p.
Example:
Request:
{"code":10,"cid":4711, "adr":"devicetag/applicationtag/getdata"}
Return:
{"cid":4711,"data":{"value":"AL1900"}, "code":200}