Back to project page BLEConnector.
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.
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; } }