|
Algorithm 2 BlueDetect IO detection and localization algorithm (Semi-outdoors ⇌ indoors). |
input: B - Bluetooth signal (iBeacon), W - WiFi signal, - duration threshold
output: Location of the mobile device
if
for
then
Turn off WiFi;
Utilize B for localization;
Environment Type ← Semi-outdoor
else
Utilize W for localization;
Environment Type ← Indoor
end
if
|