public interface ESenseEventListener
Modifier and Type | Method and Description |
---|---|
void |
onAccelerometerOffsetRead(int offsetX,
int offsetY,
int offsetZ)
Called when the information on accelerometer offset has been received
|
void |
onAdvertisementAndConnectionIntervalRead(int minAdvertisementInterval,
int maxAdvertisementInterval,
int minConnectionInterval,
int maxConnectionInterval)
Called when the information on advertisement and connection interval has been received
|
void |
onBatteryRead(double voltage)
Called when the information on battery voltage has been received
|
void |
onButtonEventChanged(boolean pressed)
Called when the button event has changed
|
void |
onDeviceNameRead(java.lang.String deviceName)
Called when the information on the device name has been received
|
void |
onSensorConfigRead(ESenseConfig config)
Called when the information on sensor configuration has been received
|
void onBatteryRead(double voltage)
voltage
- battery voltage in Voltsvoid onButtonEventChanged(boolean pressed)
pressed
- true if the button is pressed, false if it is releasedvoid onAdvertisementAndConnectionIntervalRead(int minAdvertisementInterval, int maxAdvertisementInterval, int minConnectionInterval, int maxConnectionInterval)
minAdvertisementInterval
- minimum advertisement intervalmaxAdvertisementInterval
- maximum advertisement intervalminConnectionInterval
- minimum connection intervalmaxConnectionInterval
- maximum connection intervalvoid onDeviceNameRead(java.lang.String deviceName)
deviceName
- name of the devicevoid onSensorConfigRead(ESenseConfig config)
config
- current sensor configurationvoid onAccelerometerOffsetRead(int offsetX, int offsetY, int offsetZ)
offsetX
- x-axis factory offsetoffsetY
- y-axis factory offsetoffsetZ
- z-axis factory offset