|
Algorithm 4 DaaG IoT control decision algorithm. |
-
1:
enableBeaconing() ▹ Run Algorithm 1 in background
-
2:
while isDaaGOperating() do
-
3:
-
4:
▹ Initialize variables
-
5:
▹ Run Algorithm 2 to collect data
-
6:
for
do
-
7:
=
-
8:
if
then
-
9:
-
10:
-
11:
end if
-
12:
end for
-
13:
for
do
-
14:
=
-
15:
end for
-
16:
▹ Run Algorithm 3 to control actuators
-
17:
end while
|