Page 1 of 1
WIFI signal strength and bluetooth device scan
Posted: 25 Mar 2014 16:32
by Joost van Gils
Hello Martin,
It would be nice to have a WIFI signal strength trigger and action, so it can be used in an indoor positioning system/flow.
Also a bluetooth device scan would be nice, so it can trigger actions when specific bleutooth devices are recognized.
Regards,
Joost.
Re: WIFI signal strength and bluetooth device scan
Posted: 25 Mar 2014 17:59
by Martin
Hi,
Both features are on my todo-list but have a low priority since it did not work very reliably (especially BT) when I last checked.
For WiFi you could use a trigger General Broadcast with action android.net.wifi.RSSI_CHANGED and Access intent extras: rssi=getInt("newRssi", 0); (see example on the help page of trigger General Broadcast).
You can also access the WiFi signal level using a condition WiFi Available and local variable level.
For BT you could use action android.bluetooth.device.action.FOUND and Access intent extras: rssi=getShort("android.bluetooth.device.extra.RSSI", 0); (is only executed when a BT scan detects a visible device).
Regards,
Martin
Re: WIFI signal strength and bluetooth device scan
Posted: 25 Mar 2014 18:31
by Joost van Gils
Thanks for your reply Martin.
I will try your solution.
Regards,
Joost.
Re: WIFI signal strength and bluetooth device scan
Posted: 24 Aug 2014 03:17
by swibowo
I'm not sure if I did it right. Should we use Start Activity?