Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
distance, FREE_SPACE_PATH_LOSS_CONSTANT_FOR_BLE, FSPL_FREQ, FSPL_LIGHT, HEX_ARRAY, mAssociations, mBattery, mBeaconChangeListeners, mBeaconType, mDevice, mFirstDiscovered, MID_TO_FAR_METERS, mIsManagerScanning, mLastSeen, mRange, mRssi, mScanRecord, mTemperature, mTxPower, NEAR_TO_MID_METERS, RssiComparator
Constructor and Description |
---|
ConfigurableBeacon() |
ConfigurableBeacon(Parcel in) |
Modifier and Type | Method and Description |
---|---|
void |
alert(boolean alertWithLED,
boolean alertWithBuzzer)
Enable when turn the light and/or teh speaker of the beacon
|
void |
connect(Context context,
java.lang.String password)
* Connects to the Beacon
|
int |
describeContents() |
void |
disconnect()
disconnect disconnect a Beacon
|
Context |
getContext() |
com.bluvision.beeks.sdk.helper.DefaultSettings |
getDefaultSettings() |
int |
getDeviceType()
Return the device type
|
void |
readAdvertisementSettings()
read the advertisements settings
|
void |
readConnectionSettings()
gets the connection settings
|
void |
readDeviceStatus()
read the status of the device (Battery, temperature, firmware revision)
|
void |
readEddystoneUID()
request to an EddystoneUID the UID attribute
|
void |
readEddystoneURL()
request to a EddystoneURL the URL attribute
|
void |
readFrameTypeConnectionRates(byte advertisementType)
reads the connection rates of an specific beacon type
|
void |
readFrameTypeIntervalTxPower(byte advertisementType)
read the advertising settings of a Beacon type
|
void |
readIBeaconMajorMinor()
request to an IBeacon the Major and Minor
|
void |
readIBeaconUUID()
request to an IBeacon the UUID attribute
|
void |
readTemperature()
reads the temperature settings
|
void |
setAdvertisementSettings(float disconnectInterval,
float disconnectTimeOut,
float energySavingTimeOut)
set the advertisements settings
|
void |
setBeaconConfigurationListener(BeaconConfigurationListener beaconConfigurationListener)
Sets the ConfigurationListener for the beacon
|
void |
setContext(Context context) |
void |
setEddystoneUID(byte[] nameSpace,
byte[] instanceId)
Set the UID attribute of an EddystoneUID Beacon
|
void |
setEddystoneUrl(java.lang.String URL)
set the URL to an EddystoneURL
|
void |
setFrameTypeConnectionRates(byte advertisementType,
byte connectableRate,
byte nonConnectableRate)
allow to set the connection rates of an specific beacon type
|
void |
setFrameTypeIntervalTxPower(byte advertisementType,
byte txEnergySaving,
byte txStandard,
float advEnergySaving,
float advStandard)
set the advertising settings of an indicated Beacon
|
void |
setIBeaconMajorMinor(int major,
int minor)
sets the Major and Minor Values of an IBeacon
|
void |
setIBeaconUUID(java.util.UUID uuid)
sets the iBeacon uuid
|
void |
setPassword(java.lang.String password)
Set the password of the device
|
void |
updateFirmware(byte[] firmwareData)
Update the firmware of a Beacon with the whole firmware bytes
|
void |
writeToParcel(Parcel parcel,
int flags) |
addAssociation, addOnBeaconChangeListener, bytesToHex, calculateRange, compareTo, getAssociations, getBeaconType, getDevice, getDwellTime, getFirstDiscovered, getLastSeen, getRange, getRssi, getScanRecord, getTemperature, getTimeSinceFirstSeen, getTimeSinceLastSeen, hasAssociations, hasBeenNotifiedOfOnEnter, hasBeenNotifiedOfOnExit, hasExitListeners, isConnected, isOutOfRangeBeacon, managerIsScanning, notifyOnRangeChanged, notifyRssiChanged, removeAllOnBeaconChangeListener, removeAssociation, removeOnBeaconChangeListener, removeSelfFromAssociations, setBaseData, setBeaconType, setConnected, setDevice, setLogListener, setNotifiedOfOnEnter, setNotifiedOfOnExit, setRssi, setScanRecord, updateSeen
public ConfigurableBeacon()
public ConfigurableBeacon(Parcel in)
public void setBeaconConfigurationListener(BeaconConfigurationListener beaconConfigurationListener)
beaconConfigurationListener
- the listener to be notified upon changespublic void connect(Context context, java.lang.String password)
context
- the context of the applicationpassword
- Empty if the device has no passwordpublic void alert(boolean alertWithLED, boolean alertWithBuzzer)
public void setPassword(java.lang.String password)
public void readConnectionSettings()
public void readTemperature()
public void readDeviceStatus()
public void setIBeaconUUID(java.util.UUID uuid)
public void readIBeaconUUID()
public void setEddystoneUID(byte[] nameSpace, byte[] instanceId)
public void readEddystoneUID()
BeaconConfigurationListener
public void setEddystoneUrl(java.lang.String URL)
public void readEddystoneURL()
BeaconConfigurationListener
public void readIBeaconMajorMinor()
BeaconConfigurationListener
public void setIBeaconMajorMinor(int major, int minor)
public void setFrameTypeIntervalTxPower(byte advertisementType, byte txEnergySaving, byte txStandard, float advEnergySaving, float advStandard)
advertisementType
- use com.bluvision.beeks.sdk.constants.AdvertisementTypestxEnergySaving
- value in dBm unitstxStandard
- value in dBm unitsadvEnergySaving
- value in secondsadvStandard
- value in secondsAdvertisementTypes
public void readFrameTypeIntervalTxPower(byte advertisementType)
AdvertisementTypes
public void setFrameTypeConnectionRates(byte advertisementType, byte connectableRate, byte nonConnectableRate)
advertisementType
- use com.bluvision.beeks.sdk.constants.AdvertisementTypesconnectableRate
- if 0 this frame type will be disabledAdvertisementTypes
public void readFrameTypeConnectionRates(byte advertisementType)
public void setAdvertisementSettings(float disconnectInterval, float disconnectTimeOut, float energySavingTimeOut)
public void readAdvertisementSettings()
public void disconnect()
public void updateFirmware(byte[] firmwareData)
public int getDeviceType()
DeviceTypes
public com.bluvision.beeks.sdk.helper.DefaultSettings getDefaultSettings()
public int describeContents()
describeContents
in class Beacon
public void writeToParcel(Parcel parcel, int flags)
writeToParcel
in class Beacon
public Context getContext()
public void setContext(Context context)