Remote I/O module 16 DI
AL4002
29
{
"cid":-1,
"data":{"value":"factory 2 plant 1"},
"adr":"devicetag/applicationtag/getdata",
"code":200
}
POST method
Access: reading, writing
Syntax of the request:
{
"code":"code_id",
"cid":id,
"adr":"data_point/service",
"data":{req_data},
}
Field
Parameter
Description
code
code_id
Service class
• request: Request
• transaction: Transaction
• event: Event
cid
id
Correlation ID for the assignment in pairs of request and return; identifier freely selectable by the
user
adr
data_point
Data point which is to be accessed
service
Service to access the data point
data
1
req_data
Data sent to the ifm IoT Core (e.g. new values); syntax depending on the service
1
optional; only required for services that send data to the ifm IoT Core (e.g. setdata)
Syntax of the response:
{
"cid":id,
"data":{resp_data},
"adr":"data_point/service",
"code":diag_code
}
Field
Parameter
Description
cid
id
Correlation ID for the assignment of request and return (
Ò
Request)
data
1
resp_data
Values returned by the ifm IoT Core; syntax depending on the service
adr
data_point
Data point accessed
service
Service that accessed the data point
code
diag_code
Diagnostic code
1
optional; only available for services that receive data from the ifm IoT Core (e.g. getdata)
Example: POST request
•
Request: