WIFI signal strength and bluetooth device scan

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
Joost van Gils
Posts: 19
Joined: 20 Mar 2014 09:00

WIFI signal strength and bluetooth device scan

Post by Joost van Gils » 25 Mar 2014 16:32

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: WIFI signal strength and bluetooth device scan

Post by Martin » 25 Mar 2014 17:59

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

Joost van Gils
Posts: 19
Joined: 20 Mar 2014 09:00

Re: WIFI signal strength and bluetooth device scan

Post by Joost van Gils » 25 Mar 2014 18:31

Thanks for your reply Martin.
I will try your solution.
Regards,

Joost.

swibowo
Posts: 9
Joined: 31 Jan 2014 08:51

Re: WIFI signal strength and bluetooth device scan

Post by swibowo » 24 Aug 2014 03:17

I'm not sure if I did it right. Should we use Start Activity?

Locked