|
Algorithm 4: Network switching algorithm BLE to OCC. |
B2O_Handover ()
Initialization: Communication with BLE is in progress;
if is changed then
Initiation of room cameras;
for j = 1, j <
if Camera (j) detect LED then
if
>
then
Select Camera (j);
if
>
then
Accept Camera (j);
Set j = j + 1;
else
Accept Camera (j+1);
Set j = j + 1;
end if
else
Set j = j + 1;
end if
Set j = j + 1;
else
Continue communication using BLE;
end if
end for
else
Continue communication using BLE;
end if
End
|