Data Sheet

dScript
dScript User Manual v2.15
Installing the password on your browser
Add the following below the html.password line:
html.setup on
This command will enable a built in web page that loads the password into your browser.
Here is the complete dScript program for our simple website demo.
tcpip.hostname "dS3484"
tcpip.ip "192.168.0.137"
tcpip.mask "255.255.255.0"
html.password "bQq#dm@$%^5*xZ5tY0wN!fi38H_Y3"
html.setup on
digitalport Rly1 1
analogport TSensor 100 ; on-board temp sensor
analogport PSU 101 ; DC power voltage
var Temperature
var Volts
main: do
Temperature = ((TSensor*3223)-500000)/1000
Volts = PSU*18369/100000
loop
Load this into the module and navigate your browser to (in this case)
192.168.0.137/_pw.htm
This built in file _pw.htm contains your password and the javascript needed to load it into the
local storage on your browser. When done you can go to
192.168.0.137/index.htm
Now you, and only you, can see your webpage.
Don't forget to change html.setup on to html.setup off (or delete that line) to disable
access to the password setup page _pw.htm.
Copyright © 2016, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
46