Algorithm 1. The IoT Object’s initialization process algorithm. |
-
1:
procedureinitialize(ip, port, configurationFile)
-
2:
rml ← connection(ip, port)
-
3:
if UUID == null
then
-
4:
UUID ← rml.askForUUID()
-
5:
end if
-
6:
device ← readDeviceFile(con f igurationFile)
-
7:
acknowledge ← rml.connect(UUID, device)
-
8:
if
acknowledge
then
-
9:
startCycle(rml)
-
10:
end if
-
11:
end procedure
|