Skip to main content
. 2019 Mar 9;19(5):1208. doi: 10.3390/s19051208
Algorithm 4: Network switching algorithm BLE to OCC.
  1. B2O_Handover ()

  2. Initialization: Communication with BLE is in progress;

  3. ifdα,β is changed then

  4.   Initiation of room cameras;

  5.   for j = 1, j < ξ

  6.    if Camera (j) detect LED then

  7.     if Γ(j) > Γcrit then

  8.       Select Camera (j);

  9.       if λ(j) > λ(j+1) then

  10.         Accept Camera (j);

  11.         Set j = j + 1;

  12.       else

  13.         Accept Camera (j+1);

  14.         Set j = j + 1;

  15.       end if

  16.     else

  17.       Set j = j + 1;

  18.     end if

  19.   Set j = j + 1;

  20.   else

  21.     Continue communication using BLE;

  22.   end if

  23.   end for

  24. else

  25.   Continue communication using BLE;

  26. end if

  27. End