public static interface AprilBeaconConnection.WriteCallback
限定符和类型 | 方法和说明 |
---|---|
void |
accelerometerStateChange(boolean state)
加速计状态改变时回调
|
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 oldPassword,
java.lang.String newPassword)
修改检验密码过程中发生错误时的回调
|
void |
onPasswordWrong(java.lang.String oldPassword)
检验密码错误的回调
|
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()
传感器执行打开或关闭错误时的回调
|
void onErrorOfConnection()
void onErrorOfPassword()
void onErrorOfDiscoveredServices()
void onWriteMajorSuccess(int oldMajor, int newMajor)
oldMajor
- 修改前的majornewMajor
- 修改后的majorvoid onWriteMeasuredPowerSuccess(int newMeasuredPower)
oldMeasuredPower
- newMeasuredPower
- void onWritePasswordSuccess()
void onResetSuccess()
void onWriteMinorSuccess(int oldMionr, int newMinor)
oldMionr
- 修改前的minornewMinor
- 修改后的minorvoid onWriteUUIDSuccess()
void onWriteAdvertisingIntervalSuccess()
void onWriteTxPowerSuccess()
void onWriteNewPasswordSuccess(java.lang.String oldPassword, java.lang.String newPassword)
oldPassword
- 修改前的校验密码newPassword
- 修改后的检验密码void onErrorOfWriteNewPassword(java.lang.String oldPassword, java.lang.String newPassword)
oldPassword
- 修改前的校验密码newPassword
- 要修改的检验密码值void onPasswordWrong(java.lang.String oldPassword)
oldPassword
- 输入的校验密码void onBeaconError()
void notifyABAcceleration(com.aprilbrother.aprilbrothersdk.internal.ABAcceleration abAcceleration)
abAcceleration
- 加速度类 有x,y,z轴加速度属性void notifyABLight(double light)
light
- void accelerometerStateChange(boolean state)
state
- true为打开 false为关闭void lightStateChange(boolean state)
state
- true为打开 false为关闭void turnOnOffError()
void enableAccelerometerNotification()
void enableAccelerometerNotificationError()
void enableLightNotification()
void enableLightNotificationError()
void connected()
void onErrorOfWrite()