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.
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator CREATOR
      Parcel creator.
  • Constructor Details

    • MeterlinkDeviceBluetoothLe

      public MeterlinkDeviceBluetoothLe(android.os.Parcel in)
      Parcel constructor.
      Parameters:
      in - input Parcel
  • Method Details

    • connect

      public void connect(OnMeterlinkTransferEventListener listener)
      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 class AbstractMeterlinkDevice
      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 class AbstractMeterlinkDevice
    • isBleDevice

      public boolean isBleDevice()
      Description copied from class: AbstractMeterlinkDevice
      Checks whether the Meterlink is a Bluetooth Low Energy (BLE) device.
      Specified by:
      isBleDevice in class AbstractMeterlinkDevice
      Returns:
      Returns true if the Meterlink is a Bluetooth Low Energy (BLE) device, otherwise false.
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable