public class BaseSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Constructor and Description |
---|
BaseSettings() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
AdvertisingInterval |
getAdvertisingInterval()
Get the advertising interval of the beacon
|
EnergySavingMode |
getEnergySavingMode()
Get energy saving mode of the beacon.
|
int |
getMeasuredPower()
Get the measured rssi(mrssi) of the beacon.
|
TransmitPower |
getTransmitPower()
Get the transmit power of the beacon.
|
void |
setAdvertisingInterval(AdvertisingInterval advertisingInterval)
Set the advertising interval of the beacon.
|
void |
setEnergySavingMode(EnergySavingMode energySavingMode)
Set the energy saving mode of the beacon.The energy saving mode can be
controled by the light sensor if you set.
|
void |
setMeasuredPower(int measuredPower)
Set the measured power of the beacon.
|
void |
setTransmitPower(TransmitPower transmitPower)
Set the transmit power of the beacon.
|
java.lang.String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public java.lang.String toString()
toString
in class java.lang.Object
public void setTransmitPower(TransmitPower transmitPower)
transmitPower
- The value of the transmit power TransmitPower
public TransmitPower getTransmitPower()
com.sensoro.beacon.kit.BaseSettings.TransmitPower
public void setAdvertisingInterval(AdvertisingInterval advertisingInterval)
advertisingInterval
- The value of the advertising interval com.sensoro.beacon.kit.BaseSettings.AdvertisingInterval
public AdvertisingInterval getAdvertisingInterval()
AdvertisingInterval
public void setEnergySavingMode(EnergySavingMode energySavingMode)
energySavingMode
- The mode of beacon EnergySavingMode
public EnergySavingMode getEnergySavingMode()
EnergySavingMode
public void setMeasuredPower(int measuredPower)
Set the measured power of the beacon.
range:-128~127measuredPower
- The new value of measured power(mrssi).public int getMeasuredPower()
public int describeContents()
public void writeToParcel(Parcel out, int flags)