Class MeterlinkDeviceBluetoothLe
java.lang.Object
com.flir.thermalsdk.meterlink.AbstractMeterlinkDevice
com.flir.thermalsdk.androidsdk.meterlink.MeterlinkDeviceBluetoothLe
- All Implemented Interfaces:
android.os.Parcelable
public class MeterlinkDeviceBluetoothLe
extends AbstractMeterlinkDevice
implements android.os.Parcelable
A class representing a Meterlink device discovered as a BLE (Bluetooth Low Energy/Bluetooth Smart) device.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator
Parcel creator.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(OnMeterlinkTransferEventListener listener) Connect to the Meterlink device.int
void
Disconnects the Meterlink device.boolean
Checks whether the Meterlink is a Bluetooth Low Energy (BLE) device.void
writeToParcel
(android.os.Parcel dest, int flags) Methods inherited from class com.flir.thermalsdk.meterlink.AbstractMeterlinkDevice
equals, getAddress, getCustomName, getDefaultName, isConnected, isConnecting, setCustomName, setRawPacketListener
-
Field Details
-
CREATOR
public static final android.os.Parcelable.Creator CREATORParcel creator.
-
-
Constructor Details
-
MeterlinkDeviceBluetoothLe
public MeterlinkDeviceBluetoothLe(android.os.Parcel in) Parcel constructor.- Parameters:
in
- inputParcel
-
-
Method Details
-
connect
Description copied from class:AbstractMeterlinkDevice
Connect to the Meterlink device. Use callback to receive message on connect/disconnect and updated values from the device. Connection will be established on an insecure socket (no pairing). Important: this method should be called on a background thread. Important: the MeterLink device DM93 will disconnect itself after 30 seconds, this is an issue with the device itself.- Overrides:
connect
in classAbstractMeterlinkDevice
- Parameters:
listener
- a OnMeterlinkTransferEventListener used to receive message on connect/disconnect and updated values from the device
-
disconnect
public void disconnect()Description copied from class:AbstractMeterlinkDevice
Disconnects the Meterlink device.- Specified by:
disconnect
in classAbstractMeterlinkDevice
-
isBleDevice
public boolean isBleDevice()Description copied from class:AbstractMeterlinkDevice
Checks whether the Meterlink is a Bluetooth Low Energy (BLE) device.- Specified by:
isBleDevice
in classAbstractMeterlinkDevice
- Returns:
- Returns true if the Meterlink is a Bluetooth Low Energy (BLE) device, otherwise false.
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-