public static class AprilBeaconConnection.MyWriteCallback extends java.lang.Object implements AprilBeaconConnection.WriteCallback
构造器和说明 |
---|
AprilBeaconConnection.MyWriteCallback() |
限定符和类型 | 方法和说明 |
---|---|
void |
accelerometerStateChange(boolean b)
加速计状态改变时回调
|
void |
connected()
连接到gatt的回调
|
void |
enableAccelerometerNotification()
三轴加速度计开始通知的回调
|
void |
enableAccelerometerNotificationError()
三轴加速度计开始通知错误的回调
|
void |
enableLightNotification()
光线传感器开始通知的回调
|
void |
enableLightNotificationError()
光线传感器开始通知错误的回调
|
void |
lightStateChange(boolean state)
光线传感器状态改变时回调
|
void |
notifyABAcceleration(com.aprilbrother.aprilbrothersdk.internal.ABAcceleration abAcceleration)
开启三轴加速度计通知的回调
|
void |
notifyABLight(double light)
开启光线传感器通知的回调
|
void |
onBeaconError()
连接的不是固件2.0及以上AprilBeacon的回调
|
void |
onErrorOfConnection()
连接过程发生错误
|
void |
onErrorOfDiscoveredServices()
查找服务过程中发生错误
|
void |
onErrorOfPassword()
校验密码过程中发生错误
|
void |
onErrorOfWrite()
写入过程中出现错误
|
void |
onErrorOfWriteNewPassword(java.lang.String password,
java.lang.String newPassword)
修改检验密码过程中发生错误时的回调
|
void |
onPasswordWrong(java.lang.String password)
检验密码错误的回调
|
void |
onResetSuccess()
重启成功
|
void |
onWriteAdvertisingIntervalSuccess()
修改广播频率成功时的回调
|
void |
onWriteMajorSuccess(int oldMajor,
int newMajor)
修改major成功时的回调
|
void |
onWriteMeasuredPowerSuccess(int newMeasuredPower)
修改measuredPower成功时的回调
|
void |
onWriteMinorSuccess(int oldMionr,
int newMinor)
修改minor成功时的回调
|
void |
onWriteNewPasswordSuccess(java.lang.String oldPassword,
java.lang.String newPassword)
修改校验密码成功时的回调
|
void |
onWritePasswordSuccess()
校验密码成功
|
void |
onWriteTxPowerSuccess()
修改发射功率成功时的回调
|
void |
onWriteUUIDSuccess()
修改UUID成功时的回调
|
void |
turnOnOffError()
传感器执行打开或关闭错误时的回调
|
public void onErrorOfConnection()
AprilBeaconConnection.WriteCallback
public void onErrorOfPassword()
AprilBeaconConnection.WriteCallback
public void onErrorOfDiscoveredServices()
AprilBeaconConnection.WriteCallback
public void onWriteMajorSuccess(int oldMajor, int newMajor)
AprilBeaconConnection.WriteCallback
onWriteMajorSuccess
在接口中 AprilBeaconConnection.WriteCallback
oldMajor
- 修改前的majornewMajor
- 修改后的majorpublic void onWritePasswordSuccess()
AprilBeaconConnection.WriteCallback
public void onWriteMinorSuccess(int oldMionr, int newMinor)
AprilBeaconConnection.WriteCallback
onWriteMinorSuccess
在接口中 AprilBeaconConnection.WriteCallback
oldMionr
- 修改前的minornewMinor
- 修改后的minorpublic void onWriteUUIDSuccess()
AprilBeaconConnection.WriteCallback
public void onWriteAdvertisingIntervalSuccess()
AprilBeaconConnection.WriteCallback
public void onWriteTxPowerSuccess()
AprilBeaconConnection.WriteCallback
public void onWriteNewPasswordSuccess(java.lang.String oldPassword, java.lang.String newPassword)
AprilBeaconConnection.WriteCallback
onWriteNewPasswordSuccess
在接口中 AprilBeaconConnection.WriteCallback
oldPassword
- 修改前的校验密码newPassword
- 修改后的检验密码public void onErrorOfWriteNewPassword(java.lang.String password, java.lang.String newPassword)
AprilBeaconConnection.WriteCallback
onErrorOfWriteNewPassword
在接口中 AprilBeaconConnection.WriteCallback
password
- 修改前的校验密码newPassword
- 要修改的检验密码值public void onPasswordWrong(java.lang.String password)
AprilBeaconConnection.WriteCallback
onPasswordWrong
在接口中 AprilBeaconConnection.WriteCallback
password
- 输入的校验密码public void onBeaconError()
AprilBeaconConnection.WriteCallback
public void notifyABAcceleration(com.aprilbrother.aprilbrothersdk.internal.ABAcceleration abAcceleration)
AprilBeaconConnection.WriteCallback
notifyABAcceleration
在接口中 AprilBeaconConnection.WriteCallback
abAcceleration
- 加速度类 有x,y,z轴加速度属性public void notifyABLight(double light)
AprilBeaconConnection.WriteCallback
public void accelerometerStateChange(boolean b)
AprilBeaconConnection.WriteCallback
accelerometerStateChange
在接口中 AprilBeaconConnection.WriteCallback
b
- true为打开 false为关闭public void turnOnOffError()
AprilBeaconConnection.WriteCallback
public void lightStateChange(boolean state)
AprilBeaconConnection.WriteCallback
lightStateChange
在接口中 AprilBeaconConnection.WriteCallback
state
- true为打开 false为关闭public void enableAccelerometerNotification()
AprilBeaconConnection.WriteCallback
public void enableAccelerometerNotificationError()
AprilBeaconConnection.WriteCallback
public void enableLightNotification()
AprilBeaconConnection.WriteCallback
public void enableLightNotificationError()
AprilBeaconConnection.WriteCallback
public void connected()
AprilBeaconConnection.WriteCallback
connected
在接口中 AprilBeaconConnection.WriteCallback
public void onWriteMeasuredPowerSuccess(int newMeasuredPower)
AprilBeaconConnection.WriteCallback
public void onResetSuccess()
AprilBeaconConnection.WriteCallback
public void onErrorOfWrite()
AprilBeaconConnection.WriteCallback