Class TriggersService.TriggerSubscription
java.lang.Object
com.arubanetworks.meridian.triggers.TriggersService.TriggerSubscription
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TriggersService
Subscription that can be used in conjunction with Triggers to be informed when a device is in range of
Meridian proximity beacons
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
int
int
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerSubscription
(String name) Listen for all proximity beacons of the locationTriggerSubscription
(String name, int coolDown) Listen for all proximity beacons of the location specifying the cool downTriggerSubscription
(String name, int coolDown, int RSSIThreshold) Listen for all proximity beacons of the location specifying the RSSI threshold and cool downTriggerSubscription
(String name, ArrayList<ProximityBeacon> beacons) Specifies a collection of proximity beacons to listen forTriggerSubscription
(String name, ArrayList<ProximityBeacon> beacons, int coolDown) Specifies a collection of proximity beacons to listen for with a cooldownTriggerSubscription
(String name, ArrayList<ProximityBeacon> beacons, int coolDown, int RSSIThreshold) Specifies a collection of proximity beacons to listen for specifying the RSSI threshold and cool down -
Method Summary
-
Field Details
-
name
-
allBeacons
public boolean allBeacons -
beacons
-
coolDown
public int coolDown -
RSSIThreshold
public int RSSIThreshold
-
-
Constructor Details
-
TriggerSubscription
public TriggerSubscription(String name, ArrayList<ProximityBeacon> beacons, int coolDown, int RSSIThreshold) Specifies a collection of proximity beacons to listen for specifying the RSSI threshold and cool down- Parameters:
name
-- the name of this subscription, must be unique
beacons
-- the list of beacons to listen for
coolDown
-- how long to wait between triggers in seconds (-1 for the default value of 10 seconds)
RSSIThreshold
-- the minimum RSSI value needed to trigger a beacon (range -99 -> 0).
-
TriggerSubscription
Specifies a collection of proximity beacons to listen for with a cooldown- Parameters:
name
-- the name of this subscription, must be unique
beacons
-- the list of beacons to listen for
coolDown
-- how long to wait between triggers in seconds
-
TriggerSubscription
Specifies a collection of proximity beacons to listen for- Parameters:
name
-- the name of this subscription, must be unique
beacons
-- the list of beacons to listen for
-
TriggerSubscription
Listen for all proximity beacons of the location specifying the RSSI threshold and cool down- Parameters:
name
-- the name of this subscription, must be unique
coolDown
-- how long to wait between triggers in seconds (-1 for the default value of 10 seconds)
RSSIThreshold
-- the minimum RSSI value needed to trigger a beacon (range -99 -> 0).
-
TriggerSubscription
Listen for all proximity beacons of the location specifying the cool down- Parameters:
name
-- the name of this subscription, must be unique
coolDown
-- how long to wait between triggers in seconds
-
TriggerSubscription
Listen for all proximity beacons of the location- Parameters:
name
-- the name of this subscription, must be unique
-
-
Method Details
-
equals
-
fromJsonObject
public static TriggersService.TriggerSubscription fromJsonObject(JSONObject json) throws JSONException - Throws:
JSONException
-