Android Open Source - BLEConnector B L E Device






From Project

Back to project page BLEConnector.

License

The source code is released under:

MIT License

If you think the Android project BLEConnector listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.felhr.bleconnector;
/*from w ww. ja va 2s  . c o m*/
import android.bluetooth.BluetoothDevice;

public class BLEDevice 
{
  private BluetoothDevice device;
  private int rssi;
  private byte[] scanRecord;
  // Decoded ScanRecord bytes should be here too
  
  public BLEDevice(BluetoothDevice device, int rssi, byte[] scanRecord) 
  {
    this.device = device;
    this.rssi = rssi;
    this.scanRecord = scanRecord;
  }

  public BluetoothDevice getDevice() 
  {
    return device;
  }

  public void setDevice(BluetoothDevice device) 
  {
    this.device = device;
  }

  public int getRssi() 
  {
    return rssi;
  }

  public void setRssi(int rssi) 
  {
    this.rssi = rssi;
  }

  public byte[] getScanRecord() 
  {
    return scanRecord;
  }

  public void setScanRecord(byte[] scanRecord) 
  {
    this.scanRecord = scanRecord;
  }
  
}




Java Source Code List

com.felhr.bleconnector.BLEAdvertisingParser.java
com.felhr.bleconnector.BLEBuffer.java
com.felhr.bleconnector.BLEConnectedDevice.java
com.felhr.bleconnector.BLEConnectedDevices.java
com.felhr.bleconnector.BLEConnector.java
com.felhr.bleconnector.BLEDevice.java