
SmartDEN
IP-32IN
User Manual
17 Jan 2018
-50-
8. HTTP server
This operation mode allows custom applications to obtain the input values from
SmartDEN IP-32IN
without using a Web-browser. The custom application acts as a
HTTP client, sending HTTP GET requests to the
SmartDEN IP-32IN
(Fig. 52).
Figure 52.
SmartDEN IP-32IN
can work as HTTP server
To receive the current state of the
SmartDEN IP-32IN
,
the application requests
the page
current_state.xml
/
current_state.json
, for example:
http://192.168.1.100/current_state.xml
http://192.168.1.100/current_state.json
In order to use this mode, XML/JSON access should be enabled.
The login process differs depending on the selected
Encrypt Password
option.
8.1. XML access
8.1.1. XML login (encrypted password)
In this mode a two-step login sequence is provided as a protection against
unauthorized access.
The first time the custom application requests the page
current_state.xml
, a
random login key is issued in the reply. Next the custom application uses this key to
encrypt the password. The encrypted password is sent as a parameter with the next
request to the page
current_state.xml
.
Bellow is an example of login process:
Step 1:
Request
http://192.168.1.100/current_state.xml
Reply (login required):
<CurrentState>
<LoginKey>65156</LoginKey>
</CurrentState>
Step 2:
Request (password is sent as a parameter)
Summary of Contents for SmartDEN IP-32IN
Page 25: ...SmartDEN IP 32IN User Manual 17 Jan 2018 25 Remote Relay Mode Normal...
Page 49: ...SmartDEN IP 32IN User Manual 17 Jan 2018 49 7 14 Reboot Figure 51 Reboot...
Page 52: ...SmartDEN IP 32IN User Manual 17 Jan 2018 52 Figure 53 XML file with current measurements...
Page 54: ...SmartDEN IP 32IN User Manual 17 Jan 2018 54 Figure 54 JSON file with current measurements...
Page 66: ...SmartDEN IP 32IN User Manual 17 Jan 2018 66 12 Mechanical drawing Figure 59 Device size...