User manual
21
Programming takes place within the
tab Block
s
. The Timer sets the con-
nection status. The property
isCo
nn
ec
-
te
d
can be used to check if the A
pp
is
connected to a Bluetooth device
.
When clicking the button
C
onnect, the
list o
f
available Bluetooth devices will
be displayed. I
f
the list is empty, you
need to
g
o back into the App, where
y
ou will automaticall
y
be asked for
the access ri
g
hts for the Bluetooth
interface. Enter the
p
assword 12
3
4.
W
h
en c
l
ic
k
ing t
h
e
b
utton again, t
h
e
list should now be displa
y
ed.
Here, an entry named Bluethin
g
should appear as well. A
f
ter clicking the entry, you need to enter
the
p
assword
1
2
3
4 to connect the App to the board. This list is displayed via the Block
w
h
e
n
V
erbinde.Be
f
orePickin
g
. As you can see by the
f
ollowing block, the button has two
f
unctions:
Connecting and disconnecting.
The button initiates the Bluetooth connection between the board and the A
pp.
Th
e
co
nn
ect
i
o
n i
tse
lf i
s
estab
li
s
h
ed
in
t
h
e
b
l
oc
k when Verbinde.AfterPickin
g
.
The three u
pp
er blocks will a
pp
ear in all A
pp
s in this Advent
calendar. The actual function in toda
y
’s App is implemented
in
the
block
whe
n
butto
nT
o
n.
Cl
i
ck
. In this
f
unction, onl
y
the
v
a
l
ue
Sou
n
d
is submitted, completed b
y
a
\
n
.
A
te
x
t
i
s
se
n
t
vi
a
the wireless inter
f
ace usin
g
the block
ca
ll Bl
uetoot
h.
Se
n
d
T
e
x
t
.
Submit the text as parameter. Do not
f
or
g
et to de
fi
ne an end
criterion. In this exam
p
le, the end criterion is
\
n. Thi
s
i
s
t
h
e
si
g
n t
h
at t
h
e S
k
etc
h
reacts to.
Copyin
g
bl
oc
k
s to ot
h
er pro
j
ects
T
he
a
r
ea
B
locks
contains a backpack icon. You can use it to cop
y
blocks from
the block editor from one pro
j
ect into another. Simpl
y
pull the correspondin
g
bl
oc
k
s into t
h
e
b
ac
k
pac
k
;
y
ou can t
h
en reuse t
h
ese
bl
oc
k
s in ot
h
er pro
j
ects. In
or
d
er to empt
y
t
h
e
b
ac
k
pac
k
a
g
ain, ri
gh
t-c
l
ic
k
t
h
e wor
k
area an
d
se
l
ect
E
mpt
y
Bac
kp
ac
k
.
There will be a regular check o
f
whether the wireless connection is active or not
.
Th
e
n
a
m
e
a
n
d
MA
C
-
add
r
ess
of
t
h
e
a
v
a
il
ab
l
e
de
vi
ces
a
re
d
isp
l
aye
d.
Th
e
co
nn
ect
i
o
n
to
t
h
e
se
l
ected
de
vi
ce
i
s
estab
li
s
h
ed
.
Strings can
b
e connecte
d
to eac
h
ot
h
er wit
h
t
h
e component
j
o
i
n
.
15007-3 Conrad Adventskalender Internet of Things 2017_en.indd 2115007-3 Conrad Adventskalender Internet of Things 2017_en.indd 21 13.08.2017 17:03:0913.08.2017 17:03:09










