Page Summary
-
The BleDevice class is deprecated and BluetoothManager should be used directly instead.
-
BleDevice represents a BLE device that broadcasts information from its onboard sensors.
-
A BleDevice supports one or more GATT Profiles which can be translated to one or more data types.
-
Key methods include retrieving the device's address, name, supported data types, and supported GATT profiles.
This class is deprecated.
Use BluetoothManager
directly.
Representation of a BLE Device (such as a heart rate monitor) that broadcasts information
about its on board sensors. The BLE device supports one or more
GATT Profiles, which can be translated to one or more data
type.
Inherited Constant Summary
Public Method Summary
| boolean | |
| String |
getAddress()
Returns the address of the BLE device, from
BluetoothDevice.getAddress().
|
| List<DataType> |
getDataTypes()
Returns all of the Fitness Platform data types supported by the device's
supported profiles.
|
| String |
getName()
Returns the name of the BLE device, from
BluetoothDevice.getName().
|
| List<String> |
getSupportedProfiles()
Returns a list of supported GATT Profile Specification
Types for the device which are also supported by the Fitness Platform.
|
| int |
hashCode()
|
| String |
toString()
|
| void |
writeToParcel(Parcel parcel, int
flags)
|
Inherited Method Summary
Public Methods
public boolean equals (Object other)
public String getAddress ()
Returns the address of the BLE device, from
BluetoothDevice.getAddress().
public List<DataType> getDataTypes ()
Returns all of the Fitness Platform data types supported by the device's
supported profiles.
Note that in some GATT profiles certain characteristics are optional. This method will return an optional data type even if the device doesn't support it. Registering to updates from a non-supported optional data type from a supported profile will succeed, but no data will be returned.
public String getName ()
Returns the name of the BLE device, from BluetoothDevice.getName().
public List<String> getSupportedProfiles ()
Returns a list of supported GATT Profile Specification Types for the device which are also supported by the Fitness Platform.