Class MeterlinkDeviceClassicBluetooth
java.lang.Object
com.flir.thermalsdk.meterlink.AbstractMeterlinkDevice
com.flir.thermalsdk.androidsdk.meterlink.MeterlinkDeviceClassicBluetooth
- All Implemented Interfaces:
android.os.Parcelable
public class MeterlinkDeviceClassicBluetooth
extends AbstractMeterlinkDevice
implements android.os.Parcelable
A class representing a Meterlink device discovered as a classic Bluetooth device.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.CreatorParcel creator.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(OnMeterlinkTransferEventListener listener) Connect to the Meterlink device.intvoidDisconnects the Meterlink device.booleanChecks whether the Meterlink is a Bluetooth Low Energy (BLE) device.voidwriteToParcel(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
-
MeterlinkDeviceClassicBluetooth
public MeterlinkDeviceClassicBluetooth(android.os.Parcel in) Parcel constructor.- Parameters:
in- inputParcel
-
-
Method Details
-
connect
Description copied from class:AbstractMeterlinkDeviceConnect 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:
connectin 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:AbstractMeterlinkDeviceDisconnects the Meterlink device.- Specified by:
disconnectin classAbstractMeterlinkDevice
-
isBleDevice
public boolean isBleDevice()Description copied from class:AbstractMeterlinkDeviceChecks whether the Meterlink is a Bluetooth Low Energy (BLE) device.- Specified by:
isBleDevicein classAbstractMeterlinkDevice- Returns:
- Returns true if the Meterlink is a Bluetooth Low Energy (BLE) device, otherwise false.
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-