iDigi
Gateway
Development
Kit
Getting
Started
Guide
36
18.
After
the
iDigi
Dia
project
(created
throughout
“Step
5:
Create
your
first
iDigi
Dia
Project”
of
this
guide)
starts
running
on
your
ConnectPort
X4,
you
can
interact
with
the
XBee
devices
by
accessing
the
/idigi_dia.html
web
page
directly
from
the
web
UI
of
the
ConnectPort
X4.
To
interact
with
the
new
web
page,
open
your
web
browser
and
enter
the
IP
address
of
your
ConnectPort
X4,
followed
by
the
“/idigi_dia.html”
page
(as
demonstrated
below
using
the
example
“http://10.21.6.178/idigi_dia.html”).
Figure
37:
XBee
Smart
Plug
–
Power
ON
From
this
page
you
can
turn
the
XBee
Smart
Plug
off
and
on,
as
well
as
view
all
the
current
sensor
readings.
In
order
to
demonstrate
how
this
web
page
can
control
the
power
to
a
remote
device,
connect
a
lamp,
fan,
or
some
other
electrical
device
to
the
power
outlet
on
the
XBee
Smart
Plug.
a.
In
the
example
above,
the
XBee
Smart
Plug’s
power_on
state
is
currently
turned
“On”.
To
turn
the
XBee
Smart
Plug
off,
simply
replace
the
“On”
with
“Off”
in
the
Value
column,
then
click
the
Apply
Changes
button.
b.
The
XBee
Smart
Plug
will
turn
off,
and
the
ConnectPort
X4’s
web
page
will
be
updated
to
show
the
current
power_on
state
of
the
XBee
Smart
Plug.
electronic components distributor