Class EventBeaconSettings
EventBeaconSettings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets Event Beacon Setting "Advertising Interval".int
Gets Event Beacon Setting "Advertising Type".Gets Event Beacon Setting "Eddystone Instance".Gets Event Beacon Setting "Eddystone Namespace".Gets Event Beacon Setting "Eddystone Url".int
Gets Event Beacon Setting "Event Duration"int
Gets the iBeacon Alternation Mode of Event Beacon.int
Gets the iBeacon Alternation Modulo of Event Beacon.int
Gets Event Beacon Setting "iBeacon Major".short
Gets Event Beacon Setting "iBeacon Measured Power".int
Gets Event Beacon Setting "iBeacon Minor.Gets Event Beacon Setting "iBeacon UUID".int
Gets Event Beacon Setting "Selected Frames".int
Gets Event Beacon Setting "Timer Interval"int
Gets Event Beacon Setting "Trigger".boolean
Gets Event Beacon Setting "Primary Advertising Disabled".void
setAdvertisingInterval
(int advertisingInterval) Sets the Advertising Interval of Event Beacon.void
setAdvertisingType
(int advertisingType) Sets the Advertising Type of Event Beacon.void
setEddystoneInstance
(String eddystoneInstance) Sets the Eddystone Instance of Event Beacon.void
setEddystoneNamespace
(String eddystoneNamespace) Sets the Eddystone Namespace of Event Beacon.void
setEddystoneUrl
(String eddystoneUrl) Sets the Eddystone Url of Event Beacon.void
setEventDuration
(int eventDuration) Sets the Event Duration of Event Beaconvoid
setIBeaconAlternationMode
(int iBeaconAlternationMode) Sets the iBeacon Alternation Mode of Event Beacon.void
setIBeaconAlternationModulo
(int iBeaconAlternationModulo) Sets the iBeacon Alternation Modulo of Event Beacon.void
setIBeaconMajor
(int iBeaconMajor) Sets the iBeacon Major of Event Beacon.void
setIBeaconMeasuredPower
(short iBeaconMeasuredPower) Sets the iBeacon Measured Power of Event Beacon.void
setIBeaconMinor
(int iBeaconMinor) Sets the iBeacon Minor of Event Beacon.void
setIBeaconUuid
(UUID iBeaconUuid) Sets the iBeacon UUID of Event Beacon.void
setPrimaryAdvertisingDisabled
(boolean primaryAdvertisingDisabled) Enables/Disables Primary Advertising.void
setSelectedFrames
(int selectedFrames) Sets the Selected Frames of Event Beacon.void
setTimerInterval
(int timerInterval) Sets the Timer Interval of Event Beaconvoid
setTrigger
(int trigger) Sets the Trigger of Event Beacon.toString()
int
validate()
Validates the values contained in this object.
-
Constructor Details
-
EventBeaconSettings
public EventBeaconSettings()
-
-
Method Details
-
getSelectedFrames
public int getSelectedFrames()Gets Event Beacon Setting "Selected Frames".- Returns:
- the selected frames of event beacon
-
setSelectedFrames
public void setSelectedFrames(int selectedFrames) Sets the Selected Frames of Event Beacon.Values: (Bitwise Set of following constants)
SmartBeacon.SETTING_BEACON_FRAME_NONE
SmartBeacon.SETTING_BEACON_FRAME_INFOBEACON_ENVIRONMENT
SmartBeacon.SETTING_BEACON_FRAME_INFOBEACON_ACCELERATION
SmartBeacon.SETTING_BEACON_FRAME_INFOBEACON_MAGNETOMETER
SmartBeacon.SETTING_BEACON_FRAME_EDDYSTONE_UID
SmartBeacon.SETTING_BEACON_FRAME_EDDYSTONE_URL
SmartBeacon.SETTING_BEACON_FRAME_EDDYSTONE_TLM
SmartBeacon.SETTING_BEACON_FRAME_SPECIAL
SmartBeacon.SETTING_BEACON_FRAME_IBEACON
SmartBeacon.SETTING_BEACON_FRAME_EVENTBEACON_SECURE
- Parameters:
selectedFrames
- a bitwise set of selected frames
-
getIBeaconUuid
Gets Event Beacon Setting "iBeacon UUID".- Returns:
- the iBeacon UUID of event beacon
-
setIBeaconUuid
Sets the iBeacon UUID of Event Beacon.- Parameters:
iBeaconUuid
- the iBeacon UUID
-
getIBeaconMajor
public int getIBeaconMajor()Gets Event Beacon Setting "iBeacon Major".- Returns:
- the iBeacon Major of event beacon
-
setIBeaconMajor
public void setIBeaconMajor(int iBeaconMajor) Sets the iBeacon Major of Event Beacon.Value:
0 - 65535
- Parameters:
iBeaconMajor
- the iBeacon Major
-
getIBeaconMinor
public int getIBeaconMinor()Gets Event Beacon Setting "iBeacon Minor.- Returns:
- the iBeacon Minor of event beacon
-
setIBeaconMinor
public void setIBeaconMinor(int iBeaconMinor) Sets the iBeacon Minor of Event Beacon.Value:
0 - 65535
- Parameters:
iBeaconMinor
- the iBeacon Minor
-
getIBeaconAlternationMode
public int getIBeaconAlternationMode()Gets the iBeacon Alternation Mode of Event Beacon.Available modes:
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_OFF
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_CONTINUOUS
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_RESET
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_LED
Note: for firmware version 002.014 and older value is
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_UNUSED
. In this case Alternation Mode is equal toSmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_CONTINUOUS
and enabled by setting Alternation Count larger than 0.- Returns:
- the iBeacon Alternation Mode
- See Also:
-
setIBeaconAlternationMode
public void setIBeaconAlternationMode(int iBeaconAlternationMode) Sets the iBeacon Alternation Mode of Event Beacon.Available modes:
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_OFF
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_CONTINUOUS
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_RESET
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_LED
Note: for firmware version 002.014 and older value is
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_UNUSED
. In this case Alternation Mode is equal toSmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_CONTINUOUS
and enabled by setting Alternation Modulo larger than 0.- Parameters:
iBeaconAlternationMode
- the iBeacon Alternation Mode- See Also:
-
getIBeaconAlternationModulo
public int getIBeaconAlternationModulo()Gets the iBeacon Alternation Modulo of Event Beacon.Note: this only takes affect if alternation mode is not
SmartBeacon.SETTING_BEACON_EVENT_ALTERNATION_MODE_OFF
.Value:
2 .. 255
iBeacon Major or Minor is increasing up to Modulo - 1 and restarts with base Major or Minor value
- Returns:
- the iBeacon Alternation Modulo
- See Also:
-
setIBeaconAlternationModulo
public void setIBeaconAlternationModulo(int iBeaconAlternationModulo) Sets the iBeacon Alternation Modulo of Event Beacon.Note: this only takes affect if alternation setting is not OFF.
Value:
2 .. 255
iBeacon Major or Minor is increasing up to Modulo - 1 and restarts with base Major or Minor value
- Parameters:
iBeaconAlternationModulo
- the iBeacon Alternation Modulo- See Also:
-
getIBeaconMeasuredPower
public short getIBeaconMeasuredPower()Gets Event Beacon Setting "iBeacon Measured Power".- Returns:
- the iBeacon Measured Power of event beacon
-
setIBeaconMeasuredPower
public void setIBeaconMeasuredPower(short iBeaconMeasuredPower) Sets the iBeacon Measured Power of Event Beacon.Value:
-127 - 5
- Parameters:
iBeaconMeasuredPower
- the ibeacon Measured Power
-
getEddystoneNamespace
Gets Event Beacon Setting "Eddystone Namespace".- Returns:
- the Eddystone Namespace of event beacon
-
setEddystoneNamespace
Sets the Eddystone Namespace of Event Beacon.Value:
- 20 byte hex string
- Parameters:
eddystoneNamespace
- the Eddystone Namespace
-
getEddystoneInstance
Gets Event Beacon Setting "Eddystone Instance".- Returns:
- the Eddystone Instance of event beacon
-
setEddystoneInstance
Sets the Eddystone Instance of Event Beacon.Value:
- 12 byte hex string
- Parameters:
eddystoneInstance
- the Eddystone Instance
-
getEddystoneUrl
Gets Event Beacon Setting "Eddystone Url".- Returns:
- the Eddystone Url of event beacon
-
setEddystoneUrl
Sets the Eddystone Url of Event Beacon.- Parameters:
eddystoneUrl
- the Eddystone Url
-
getAdvertisingInterval
public int getAdvertisingInterval()Gets Event Beacon Setting "Advertising Interval".- Returns:
- the Advertising Interval of event beacon
-
setAdvertisingInterval
public void setAdvertisingInterval(int advertisingInterval) Sets the Advertising Interval of Event Beacon.Value:
100 - 10000 ms
- Parameters:
advertisingInterval
- the Advertising Interval
-
getAdvertisingType
public int getAdvertisingType()Gets Event Beacon Setting "Advertising Type".- Returns:
- the Advertising Type of event beacon
-
setAdvertisingType
public void setAdvertisingType(int advertisingType) Sets the Advertising Type of Event Beacon.Since firmware version 006.001 Advertising type is not supported any more because Smart Beacon is sending connectable. Therefore Advertising type is set to
SmartBeacon.SETTING_BEACON_SELECTED_ADVERTISING_TYPE_CONNECTABLE_SCANRESPONSE
.Values for firmware version 002.xxx:
- Parameters:
advertisingType
- the Advertising Type
-
isPrimaryAdvertisingDisabled
public boolean isPrimaryAdvertisingDisabled()Gets Event Beacon Setting "Primary Advertising Disabled".- Returns:
- if Primary Advertising is Disabled
-
setPrimaryAdvertisingDisabled
public void setPrimaryAdvertisingDisabled(boolean primaryAdvertisingDisabled) Enables/Disables Primary Advertising.If disabled, the blukii only sends advertising defined in
EventBeaconSettings
- Parameters:
primaryAdvertisingDisabled
-true
to disable Primary advertising
-
getTrigger
public int getTrigger()Gets Event Beacon Setting "Trigger".- Returns:
- the Trigger of event beacon
-
setTrigger
public void setTrigger(int trigger) Sets the Trigger of Event Beacon.Value: (Bitwise set of following constants)
- Parameters:
trigger
- a bitwise set of triggers
-
getEventDuration
public int getEventDuration()Gets Event Beacon Setting "Event Duration"- Returns:
- the Event Duration of event beacon
-
setEventDuration
public void setEventDuration(int eventDuration) Sets the Event Duration of Event BeaconValue:
1 - 42940 s
- Parameters:
eventDuration
- the event duration
-
getTimerInterval
public int getTimerInterval()Gets Event Beacon Setting "Timer Interval"- Returns:
- the Timer Interval of event beacon
-
setTimerInterval
public void setTimerInterval(int timerInterval) Sets the Timer Interval of Event BeaconValue:
1 - 42940 s
- Parameters:
timerInterval
- the timer interval
-
validate
public int validate()Validates the values contained in this object.This can be used when you create an object, to verify the values set.
- Returns:
- a state from
Validation
-
equals
-
toString
-