我试图在android中看到带有estimote sdk的信标,但没有运气!我可以看到所有的estimote信标,但所有其他信标都没有工作(fobo beacons等)我正在使用uuid为区域内的fobo信标构造函数,我可以在logcat中看到蓝牙可以看到的设备,但estimode SDK未在收集它的一盏明灯!任何想法,为什么发生这种情况?我发布以下代码:
private static final String FOBO_PROXIMITY_UUID = "00158800-587d-2206-d52b-fb6d6e2f0001";
private static final Region FOBOBEACONS = new Region("rid", FOBO_PROXIMITY_UUID , null, null);
public void BeaconManager(){
beaconManager = new com.estimote.sdk.BeaconManager(this);
beaconManager.setBackgroundScanPeriod(5000, 30000);
beaconManager.setForegroundScanPeriod(7000, 5000);
beaconManager.setRangingListener(new com.estimote.sdk.BeaconManager.RangingListener() {
@Override
public void onBeaconsDiscovered(final Region arg0, final List<Beacon> arg1) {
// TODO Auto-generated method stub
runOnUiThread(new Runnable() {
@Override
public void run() {
// Note that beacons reported here are already sorted by estimated
// distance between device and beacon.
int test=0;
if(arg1.size()<=0){ …Run Code Online (Sandbox Code Playgroud)