EasyManua.ls Logo

IFM AL1340 - Page 43

IFM AL1340
129 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
IO-Link Master with Modbus TCP Interface DataLine 4 Ports IP 65 / IP 66 / IP 67
43
>
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
}