public class AprilBeaconCharacteristics
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
AprilBeaconCharacteristics.MyReadCallBack |
static interface |
AprilBeaconCharacteristics.ReadCallback
读取设备信息的回调
|
限定符和类型 | 字段和说明 |
---|---|
static int |
READ_ADVINTERVAL |
static int |
READ_BATTERY |
static int |
READ_FW_REVISON |
static int |
READ_MANUFACTURER |
static int |
READ_TXPOWER |
构造器和说明 |
---|
AprilBeaconCharacteristics(Context context,
Beacon beacon) |
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
void |
connectGattToRead(AprilBeaconCharacteristics.MyReadCallBack myReadCallBack,
int readWhat)
连接设备读取信息
|
java.lang.Integer |
getAdvinterval()
获取广播频率
|
java.lang.Integer |
getBattery()
获取电池电量
|
java.lang.String |
getFWRevision()
获取固件版本
|
java.lang.String |
getManufacturer()
获取制造商的信息
|
java.lang.Integer |
getTxPower()
获取发射功率
|
public static final int READ_BATTERY
public static final int READ_TXPOWER
public static final int READ_ADVINTERVAL
public static final int READ_FW_REVISON
public static final int READ_MANUFACTURER
public AprilBeaconCharacteristics(Context context, Beacon beacon)
public java.lang.Integer getBattery()
public java.lang.Integer getTxPower()
public java.lang.Integer getAdvinterval()
public java.lang.String getFWRevision()
public java.lang.String getManufacturer()
public void connectGattToRead(AprilBeaconCharacteristics.MyReadCallBack myReadCallBack, int readWhat)
myReadCallBack
- 读取的回调readWhat
- 需要读的值public void close()