Kallisto

public abstract class Kallisto

Class representing a kallisto device.

Note that the discovery of the information of each kallisto device is opportunistic. When the first connection occurs by a request like KallistoSensorManager.registerListener(SensorEventListener,KallistoSensor,int) or any information is requested like getFirmwareVersion(), everything will be populated.

Not every kallisto device contains all types of sensors. Each device is free to implement any combination of sensors.

Constructors

Kallisto

Kallisto(String name, String address)

kallisto constructor.

Methods

getActuator

public final KallistoActuator getActuator(int handle)

Get this kallisto device KallistoActuator with the passed handle.

Parameters
Returns

The desired KallistoActuator or null if not found.

getActuatorByType

public final List<KallistoActuator> getActuatorByType(int type)

Get this kallisto device KallistoActuator list of the passed type.

Parameters
Returns

A list with the desired KallistoActuator list of the passed type.

getActuators

public final List<KallistoActuator> getActuators()

Get this kallisto device KallistoActuator list.

Returns

A KallistoActuator list with all the actuators of this kallisto device.

getAddress

public final String getAddress()

Get the MAC address of this kallisto device.

Returns

The kallisto device MAC address. Follows the same format of android.bluetooth.BluetoothDevice.getAddress().

getBatteryChangesSupport

public final boolean getBatteryChangesSupport()

Checks if this kallisto device supports battery state-of-charge changes.

Returns

true if this kallisto supports battery changes.

getDfuSupport

public boolean getDfuSupport()

Checks if this kallisto device supports device firmware updates.

Returns

true if this kallisto supports DFU.

getFirmwareVersion

public String getFirmwareVersion()

Get the firmware version of this kallisto device.

This version refers to the SDK version of the firmware.

Returns

The kallisto device firmware version string.

getHardwareVersion

public String getHardwareVersion()

Get the hardware version of this kallisto device.

Returns

The kallisto device hardware version string.

getManufacturer

public String getManufacturer()

Get the manufacturer of this kallisto device.

Returns

The kallisto device manufacturer.

getModeChangeSupport

public boolean getModeChangeSupport()

Get mode change support of this kallisto device.

Returns

true if this kallisto device supports mode changes.

getName

public final String getName()

Get the name of this kallisto device.

Returns

The kallisto device advertising name.

getSensor

public final KallistoSensor getSensor(int handle)

Get this kallisto device KallistoSensor with the passed handle.

Parameters
Returns

The desired KallistoSensor or null if not found.

getSensorByType

public final List<KallistoSensor> getSensorByType(int type)

Get this kallisto device KallistoSensor list of the passed type.

Parameters
Returns

A list with the desired KallistoSensor list of the passed type.

getSensors

public final List<KallistoSensor> getSensors()

Get this kallisto device KallistoSensor list.

Returns

A KallistoSensor list with all the sensors of this kallisto device.

getSoftwareVersion

public String getSoftwareVersion()

Get the software version of this kallisto device.

This version refers to the application version of the firmware.

Returns

The kallisto device software version string.

hasActuators

public final boolean hasActuators()

Checks if this kallisto device has any actuators.

Returns

true if this kallisto has any actuators.

hasSensors

public final boolean hasSensors()

Checks if this kallisto device has any sensors.

Returns

true if this kallisto has any sensors.

isBeingUsed

public abstract boolean isBeingUsed()

Checks if this kallisto device is being used.

Returns

true if this kallisto is being used.

isBonded

public abstract boolean isBonded()

Get the pairing state of this kallisto device.

Returns

true if this kallisto is bonded.

isInLinkLoss

public abstract boolean isInLinkLoss()

Checks if this kallisto device is in Link Loss.

Link loss represents a state where the device should be connected but that connection was lost. The system will actively try to recover the connection.

Returns

true if this kallisto is in Link Loss.

isUpdating

public abstract boolean isUpdating()

Checks if this kallisto device is under DFU procedure.

Returns

true if this kallisto is being updated.

toString

public String toString()
Returns

A string representation of this kallisto device.