IO-Link Master with IoT Interface DataLine 8 Ports IP 65 / IP 66 / IP 67
39
>
Example: Request with authentication
54685
Task:
The temperature of the IO-Link master is to be read. The security function is enabled (current
password: password).
Solution:
Read the data point processdatamaster/temperature with the getdata service. The request
must be sent using https. The user name and the password are transferred as a Base64-coded
character string ("administrator" = "YWRtaW5pc3RyYXRvcg==", "password" = "cGFzc3dvcmQ=")
Request:
{
"code":"request",
"cid":-1,
"adr":"processdatamaster/temperature/getdata",
"auth":{"user":"YWRtaW5pc3RyYXRvcg==","passwd":"cGFzc3dvcmQ="}
}
Response:
{
"cid":-1,
"data":{"value":37},
"code":200
}
>
Example: reset password
54686
Task:
The existing password is to be reset.
Solution:
To reset a password, disable the security mode. To disable it, enter the user name and the
password (the fields "user" and "passwd").
Request:
{
"code":"request",
"cid":-1,
"adr":"iotsetup/security/securitymode/setdata",
"data":{"newvalue":0},
"auth":{"user":"YWRtaW5pc3RyYXRvcg==","passwd":"SW9UNGlmbQ=="}
}
Response:
{
"cid":-1,
"code":200
}