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.
WIFI signal strength and bluetooth device scan
Moderator: Martin
-
- Posts: 19
- Joined: 20 Mar 2014 09:00
Re: WIFI signal strength and bluetooth device scan
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
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
-
- Posts: 19
- Joined: 20 Mar 2014 09:00
Re: WIFI signal strength and bluetooth device scan
Thanks for your reply Martin.
I will try your solution.
Regards,
Joost.
I will try your solution.
Regards,
Joost.
Re: WIFI signal strength and bluetooth device scan
I'm not sure if I did it right. Should we use Start Activity?