AL4002
Remote I/O module 16 DI
28
9.2 ifm IoT Core
9.2.1 ifm IoT Core: General information
The device has the ifm IoT Core. The ifm IoT Core represents the functionality of a device. Each
device is represented by a number of objects, services and events. The elements of the ifm IoT Core
are arranged in a JSON object in a hierarchical tree structure. The ifm IoT Core makes these elements
available to the outside world via standard interfaces. This allows the user and other devices to access
data (parameters, process data, events) and functions (services) of the ifm IoT Core.
9.2.1.1 Accessing the ifm IoT Core
An element of the ifm IoT Core is accessed via its address (e.g.
root/port1/pin2
). The address is
composed of the path leading to the element (
root/port1
) and the identifier of the element (
pin2
).
The user can access the ifm IoT Core via HTTP requests. The following methods are supported:
GET method
Access: reading
Syntax of the request:
http://ip/datapoint/service
Parameter
Description
ip
IP address of the IoT interface
data_point
Data point which is to be accessed
service
Service
Syntax of the response:
{
"cid":id,
"data":{"value":"resp_data"},
"adr":"data_point/service",
"code":diag_code
}
Field
Parameter
Description
cid
id
Correlation ID for the assignment of request and reply
data
resp_data
Value of the data point; depending on the data type of the data point
adr
data_point
Data point accessed
service
Service that accessed the data point
code
diag_code
Diagnostic code Diagnostic codes
Example: GET request
•
Request:
http://192.168.0.250/devicetag/applicationtag/getdata
•
Response: