本文整理汇总了Java中org.altbeacon.beacon.Beacon.getBluetoothAddress方法的典型用法代码示例。如果您正苦于以下问题:Java Beacon.getBluetoothAddress方法的具体用法?Java Beacon.getBluetoothAddress怎么用?Java Beacon.getBluetoothAddress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.altbeacon.beacon.Beacon
的用法示例。
在下文中一共展示了Beacon.getBluetoothAddress方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Ruuvitag
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
public Ruuvitag(Beacon beacon, boolean temporary)
{
id = beacon.getBluetoothAddress();
url = UrlBeaconUrlCompressor.uncompress(beacon.getId1().toByteArray());
rssi = String.valueOf(beacon.getRssi());
if(!temporary)
process();
}
示例2: ThunderBoardDevice
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
public ThunderBoardDevice(Beacon beacon) {
this.address = beacon.getBluetoothAddress();
this.name = beacon.getBluetoothName();
Timber.d("beacon: %s name: %s, timestamp: %d", address, beacon.getBluetoothName(), timestamp);
if (name == null) {
this.name = String.format("%s #%08d", THUNDER_BOARD_DEFAULT_NAME, beacon.getId3().toInt());
this.isOriginalNameNull = true;
} else {
this.isOriginalNameNull = false;
}
this.rssi = beacon.getRssi();
}
示例3: getBeaconKey
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
private String getBeaconKey(@NonNull Beacon beacon) {
if (matchBeaconsByServiceUUID) {
return beacon.getBluetoothAddress() + beacon.getServiceUuid();
} else {
return beacon.getBluetoothAddress();
}
}