
IO-Link Master with IoT Interface CabinetLine 8 Ports IP 20
49
>
Access the ifm IoT Core
52257
The user can access the ifm IoT Core via HTTP requests. The following request methods are
available.
>
GET method
33804
Using the GET method the user has read access to a data point.
The syntax of the request to the IoT Core is:
http://ip/datapoint/service
Description
Description
ip
IP address of the IoT port X23 of the IO-Link master
data_point
Data point which is to be accessed
service
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
(
→ S.
Example:
Request (via browser):
https://192.168.0.250/devicetag/applicationtag/getdata
Return:
{"cid":-1,"data":{"value":"AL1950"}, "code":200}