ConnectState
public abstract class ConnectState extends Object
Constructors
Name | Description |
---|---|
public ConnectState()
|
Methods
isType
public boolean isType(Type type)
Parameters
Name | Description |
---|---|
Type type
|
ReturnValue
Name | Description |
---|---|
boolean
|
getType
public abstract Type getType()
Return the type associated with this class.
ReturnValue
Name | Description |
---|---|
Type
|
connected
public abstract Peripheral connected()
Returns aPeripheralfrom the connection.
ReturnValue
Name | Description |
---|---|
Peripheral
|
failedToConnect
public abstract FailedToConnect failedToConnect()
Returns aFailedToConnecterror.
ReturnValue
Name | Description |
---|---|
FailedToConnect
|
disconnected
public abstract FailedToConnect disconnected()
Returns aFailedToConnecterror.
ReturnValue
Name | Description |
---|---|
FailedToConnect
|
servicesDiscovered
public abstract ServicesDiscovered servicesDiscovered()
Returns aServicesDiscovered.
ReturnValue
Name | Description |
---|---|
ServicesDiscovered
|
characteristicUpdated
public abstract CharacteristicUpdate characteristicUpdated()
Returns aCharacteristicUpdate.
ReturnValue
Name | Description |
---|---|
CharacteristicUpdate
|
valueWritten
public abstract CharacteristicUpdate valueWritten()
Returns aCharacteristicUpdate.
ReturnValue
Name | Description |
---|---|
CharacteristicUpdate
|
valueRssi
public abstract RssiUpdate valueRssi()
Returns aRssiUpdate.
ReturnValue
Name | Description |
---|---|
RssiUpdate
|
Data class holding the different state the bluetooth connection can be in.