public class SBeacon extends ConfigurableBeacon
Beacon
and is in sBeacon FormatModifier 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
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)
connect connect to a Beacon
|
int |
describeContents() |
void |
disconnect()
disconnect Disconnect a Beacon
|
float |
getBattery() |
java.lang.String |
getsId()
gets the SID of the sBeacon
|
float |
getTemperatureFromScanRecord() |
void |
readIBeaconMajorMinor()
request to an IBeacon the Major and Minor
|
void |
readIBeaconUUID()
request to an IBeacon the UUID value
|
void |
readStatus()
read the current status of a Beacon, gets (temperature, battery voltage, firmware
revision)
|
void |
readTemperature()
reads the temperature settings
|
void |
setBeaconConfigurationListener(BeaconConfigurationListener beaconConfigurationListener)
Sets the ConfigurationListener for the beacon
|
void |
setIBeaconMajorMinor(int major,
int minor)
sets the Major and Minor Values if an IBeacon
|
void |
setIBeaconUUID(java.util.UUID uuid)
sets the UUID of and IBeacon
|
void |
setIntervalTxPower(byte txEnergySaving,
byte txStandard,
float advEnergySaving,
float advStandard) |
void |
writeToParcel(Parcel parcel,
int flags) |
getContext, getDefaultSettings, getDeviceType, readAdvertisementSettings, readConnectionSettings, readDeviceStatus, readEddystoneUID, readEddystoneURL, readFrameTypeConnectionRates, readFrameTypeIntervalTxPower, setAdvertisementSettings, setContext, setEddystoneUID, setEddystoneUrl, setFrameTypeConnectionRates, setFrameTypeIntervalTxPower, setPassword, updateFirmware
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 void setBeaconConfigurationListener(BeaconConfigurationListener beaconConfigurationListener)
ConfigurableBeacon
setBeaconConfigurationListener
in class ConfigurableBeacon
beaconConfigurationListener
- the listener to be notified upon changespublic void connect(Context context, java.lang.String password)
connect
in class ConfigurableBeacon
context
- the actual context of the applicationpassword
- Empty if the device has no passwordpublic void alert(boolean alertWithLED, boolean alertWithBuzzer)
alert
in class ConfigurableBeacon
public void readTemperature()
ConfigurableBeacon
readTemperature
in class ConfigurableBeacon
public void readStatus()
BeaconConfigurationListener
public void setIBeaconUUID(java.util.UUID uuid)
setIBeaconUUID
in class ConfigurableBeacon
BeaconConfigurationListener
public void readIBeaconUUID()
readIBeaconUUID
in class ConfigurableBeacon
BeaconConfigurationListener
public void readIBeaconMajorMinor()
readIBeaconMajorMinor
in class ConfigurableBeacon
BeaconConfigurationListener
public void setIBeaconMajorMinor(int major, int minor)
setIBeaconMajorMinor
in class ConfigurableBeacon
public void setIntervalTxPower(byte txEnergySaving, byte txStandard, float advEnergySaving, float advStandard)
txEnergySaving
- value in dBm unitstxStandard
- value in dBm unitsadvEnergySaving
- value in secondsadvStandard
- value in secondspublic void disconnect()
disconnect
in class ConfigurableBeacon
public int describeContents()
describeContents
in class ConfigurableBeacon
public void writeToParcel(Parcel parcel, int flags)
writeToParcel
in class ConfigurableBeacon
public java.lang.String getsId()
public float getBattery()
public float getTemperatureFromScanRecord()